Show smoke test output during execution not after 13/181813/1
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 19 Jun 2017 16:07:22 +0000 (18:07 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 8 Aug 2017 08:18:56 +0000 (10:18 +0200)
Change-Id: Id102c0f749ba2a52d2f1561784be8b49c5254f2b

tct/minnow_run.sh
tct/odroid_run.sh
tct/rpi3_run.sh
tct/run/run.sh

index f17ff05..cd66a78 100755 (executable)
@@ -48,8 +48,6 @@ printf "\n"
 copy_ssh "${IP}" "${TESTLAB_SCRIPTS}/run/smoke_tests.sh"
 run_smoke_ssh "${IP}"
 
-cat sysctl.result
-
 echo "### run ###"
 
 if [ -f "common_test.yaml" ]
index 3d08a47..7065fda 100755 (executable)
@@ -70,8 +70,6 @@ then
     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"
index e095f2f..01bb269 100755 (executable)
@@ -50,8 +50,6 @@ echo "### run ###"
 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"
index e1aa68c..6cccc85 100755 (executable)
@@ -82,7 +82,7 @@ run_smoke_ssh() {
     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 ]
@@ -96,7 +96,7 @@ run_smoke_ssh() {
 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
@@ -108,7 +108,7 @@ run_smoke_sdb() {
         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
 }