diff options
author | Arthur She <arthur.she@linaro.org> | 2020-09-10 09:43:57 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2020-09-10 09:43:57 -0700 |
commit | b67875b0726815a2f58b46c60bc091cb906cbb54 (patch) | |
tree | ebc1df6aeffc4a6690c8d264901f37bc15552b00 /automated | |
parent | b7243a723b06e1ddd2f63bfb2552f233feebbea3 (diff) |
igt: Reboot Chamelium before test
Diffstat (limited to 'automated')
-rw-r--r-- | automated/linux/igt/igt-test.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/automated/linux/igt/igt-test.yaml b/automated/linux/igt/igt-test.yaml index 9ed02ef..12342a0 100644 --- a/automated/linux/igt/igt-test.yaml +++ b/automated/linux/igt/igt-test.yaml @@ -26,11 +26,14 @@ params: run: steps: - cd ./automated/linux/igt + # 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" + - 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 |