sdb -s "${SDMUX}" shell mount -o ro,remount /
fi
-cat sysctl.result
-
if [ -f "common_test.yaml" ]
then
run_avocado_sdb "${SDMUX}" "avocado-results" "common_test.yaml"
copy_sdb "${IP}" "${TESTLAB_SCRIPTS}/run/smoke_tests.sh"
run_smoke_sdb "${IP}"
-cat sysctl.result
-
if [ -f "common_test.yaml" ]
then
run_avocado_sdb "${IP}" "avocado-results" "common_test.yaml"
test -n "${IP}" || die "Missing argument: ip"
COUNT=1
while ! timeout 60 sshpass -p 'tizen' ssh -F "${TESTLAB_SCRIPTS}/conf/ssh_config" \
- "root@${IP}" sh "/tmp/smoke.sh" > sysctl.result
+ "root@${IP}" sh "/tmp/smoke.sh" | tee sysctl.result
do
echo "SSH connection to ${IP} failed: retrying" >&2
if [ ${COUNT} -ge 6 ]
run_smoke_sdb() {
ID="$1"
test -n "${ID}" || die "Missing argument: id"
- sdb -s "${ID}" shell sh "/tmp/smoke.sh" > sysctl.result
+ sdb -s "${ID}" shell sh "/tmp/smoke.sh" | tee sysctl.result
SLEEP=10
while ! grep -q "FINISH_SUCCESS" sysctl.result
do
then
die "Timeout: sdb connection failed!"
fi
- sdb -s "${ID}" shell sh "/tmp/smoke.sh" > sysctl.result
+ sdb -s "${ID}" shell sh "/tmp/smoke.sh" | tee sysctl.result
SLEEP=$((SLEEP+10))
done
}