aboutsummaryrefslogtreecommitdiff
path: root/automated
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2020-08-04 11:07:00 -0700
committerArthur She <arthur.she@linaro.org>2020-08-04 11:35:53 -0700
commit55c8097e9a0c0b93ae70b0ea21da9cd6bbf8cbec (patch)
treeb93c06e755c01a6f85316970fdf24b4000e3fe38 /automated
parent701e2f3598f2d18f59703db9084403a33f4e1efc (diff)
igt: Check Chamelium IP address before we go further
The Chamelium IP address comes from device dict. It has to be ready before we do the further tests. Signed-off-by: Arthur She <arthur.she@linaro.org>
Diffstat (limited to 'automated')
-rw-r--r--automated/linux/igt/igt-test.yaml5
1 files changed, 2 insertions, 3 deletions
diff --git a/automated/linux/igt/igt-test.yaml b/automated/linux/igt/igt-test.yaml
index c84c083..95deaf8 100644
--- a/automated/linux/igt/igt-test.yaml
+++ b/automated/linux/igt/igt-test.yaml
@@ -28,14 +28,13 @@ run:
- cd ./automated/linux/igt
- OPT="-d ${IGT_DIR} -t ${TEST_LIST}"
- if [ "${TEST_LIST}" = "CHAMELIUM" ]; then
- # Check if Chamelium is available
+ # Check if Chamelium is available. ${CHAMELIUM_IP} is from LAVA device dictionary
- 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 ${CHAMELIUM_PING_RETRY} -gt 0 && lava-test-case "Ping-Chamelium" --result pass || lava-test-raise "Ping-Chamelium"
+ - 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
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${CHAMELIUM_IP} /usr/bin/lock_u_boot_console
# Showing the uptime of Chamelium
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${CHAMELIUM_IP} /usr/bin/uptime
- # ${CHAMELIUM_IP} is from LAVA device dictionary
- if [ -n "${CHAMELIUM_IP}" ]; then OPT="${OPT} -c ${CHAMELIUM_IP}"; fi
- if [ -n "${HDMI_DEV_NAME}" ]; then OPT="${OPT} -h ${HDMI_DEV_NAME}"; fi
- fi