diff options
author | Arthur She <arthur.she@linaro.org> | 2020-09-10 09:36:49 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2020-09-10 09:36:49 -0700 |
commit | b7243a723b06e1ddd2f63bfb2552f233feebbea3 (patch) | |
tree | df597b7e6b7290975b3386019b00a686543baa1e /automated/linux/igt | |
parent | b298b1a75bf07df25425cbb66be8197f94c3c410 (diff) |
igt: Make sure target network is OK
Signed-off-by: Arthur She <arthur.she@linaro.org>
Diffstat (limited to 'automated/linux/igt')
-rw-r--r-- | automated/linux/igt/igt-test.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/automated/linux/igt/igt-test.yaml b/automated/linux/igt/igt-test.yaml index 142e734..9ed02ef 100644 --- a/automated/linux/igt/igt-test.yaml +++ b/automated/linux/igt/igt-test.yaml @@ -29,6 +29,8 @@ run: - 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 |