aboutsummaryrefslogtreecommitdiff
path: root/automated/linux/igt
diff options
context:
space:
mode:
authorArthur <arthur.she@linaro.org>2020-01-15 14:39:06 -0800
committerArthur <arthur.she@linaro.org>2020-01-15 14:39:06 -0800
commit6cfa4dbfd2a9dc8e457821e66141b7fb32889b37 (patch)
tree77a7af79896c3b5d212f72179fb1fda0eece3792 /automated/linux/igt
parent0d949f8ec56871638434020a16f2a8a11701b1d7 (diff)
igt: update ping judgement
Signed-off-by: Arthur <arthur.she@linaro.org>
Diffstat (limited to 'automated/linux/igt')
-rw-r--r--automated/linux/igt/igt-test.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/linux/igt/igt-test.yaml b/automated/linux/igt/igt-test.yaml
index a097b80..2d2c6fd 100644
--- a/automated/linux/igt/igt-test.yaml
+++ b/automated/linux/igt/igt-test.yaml
@@ -28,7 +28,7 @@ run:
- cd ./automated/linux/igt
# Check if Chamelium is available
- CHAMELIUM_REBOOT_ARG=`echo ${CHAMELIUM_REBOOT}|awk '{$1=""; print $0}'`
- - while [ ${CHAMELIUM_PING_RETRY} -gt 0 ]; do PC=`ping -c 2 ${CHAMELIUM_IP}|grep '100% packet loss'`; if [ -n "${PC}" ]; then ./control_chamelium.py ${CHAMELIUM_REBOOT_ARG}; sleep 30; (( CHAMELIUM_PING_RETRY-- )); else break; fi; done
+ - while [ ${CHAMELIUM_PING_RETRY} -gt 0 ]; do PC=`ping -c 2 ${CHAMELIUM_IP}|grep '100% packet loss'`||true; if [ -n "${PC}" ]; then ./control_chamelium.py ${CHAMELIUM_REBOOT_ARG}; sleep 30; (( CHAMELIUM_PING_RETRY-- )); else break; fi; done
- test ${CHAMELIUM_PING_RETRY} -gt 0 && lava-test-case "Ping-Chamelium" --result pass || lava-test-raise "Ping-Chamelium"
- OPT="-d ${IGT_DIR} -t ${TEST_LIST}"
# ${CHAMELIUM_IP} is from LAVA device dictionary