diff options
author | Arthur She <arthur.she@linaro.org> | 2020-09-10 11:05:37 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2020-09-10 11:05:37 -0700 |
commit | e780207653560231afdc0644a5a9b842fe868d42 (patch) | |
tree | a4904c6e0ce4ccb332e1b9f9ff54a725665848a7 /automated/linux/igt | |
parent | b67875b0726815a2f58b46c60bc091cb906cbb54 (diff) |
igt: Test network befort do any tests
Signed-off-by: Arthur She <arthur.she@linaro.org>
Diffstat (limited to 'automated/linux/igt')
-rw-r--r-- | automated/linux/igt/igt-test.yaml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/automated/linux/igt/igt-test.yaml b/automated/linux/igt/igt-test.yaml index 12342a0..e22033c 100644 --- a/automated/linux/igt/igt-test.yaml +++ b/automated/linux/igt/igt-test.yaml @@ -26,14 +26,15 @@ params: run: steps: - cd ./automated/linux/igt + - OPT="-d ${IGT_DIR} -t ${TEST_LIST}" + # Check if the network is available + - ifconfig + - ping -c 2 www.google.com || lava-test-raise "Target-network-failure" # Reboot Chamelium - echo -e "\nReboot the chamelium\n" - ./control_chamelium.sh ${CHAMELIUM_REBOOT_ARG}; sleep 30 - - OPT="-d ${IGT_DIR} -t ${TEST_LIST}" - if [ "${TEST_LIST}" = "CHAMELIUM" ]; then # Check if Chamelium is available. ${CHAMELIUM_IP} is from LAVA device dictionary - - ifconfig - - ping -c 2 www.google.com || lava-test-raise "Target-network-failure" - while [ ${CHAMELIUM_PING_RETRY} -gt 0 ]; do PC=`ping -c 2 ${CHAMELIUM_IP}|grep '100% packet loss'`||true; if [ -n "${PC}" ]; then ./control_chamelium.sh ${CHAMELIUM_REBOOT_ARG}; sleep 30; (( CHAMELIUM_PING_RETRY-- )); else break; fi; done - test -n "${CHAMELIUM_IP}" && test ${CHAMELIUM_PING_RETRY} -gt 0 && lava-test-case "Ping-Chamelium" --result pass || lava-test-raise "Ping-Chamelium" # Check Chamelium uboot console status |