aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWen Jin <wenx.jin@intel.com>2017-10-27 23:24:06 +0800
committerTony Luck <tony.luck@intel.com>2017-10-30 09:55:56 -0700
commit74bffd8b0aa27051aeaa1983a7b23975ca8d8726 (patch)
tree04c793ea932da38a88d00dfa691b58d229fc7ded
parentc841d108e4c07540027fbb990fdc8c118531084f (diff)
downloadmce-test-74bffd8b0aa27051aeaa1983a7b23975ca8d8726.tar.gz
screen command will terminate if stdin is not terminal
Signed-off-by: Wen Jin <wenx.jin@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-rwxr-xr-xcases/function/bsp/runtest.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/cases/function/bsp/runtest.sh b/cases/function/bsp/runtest.sh
index 90311f2..a9682ce 100755
--- a/cases/function/bsp/runtest.sh
+++ b/cases/function/bsp/runtest.sh
@@ -73,7 +73,12 @@ and test again. Exiting..."
exit 1
fi
- screen ./bsp-test.sh
+ #screen command will terminate if stdin is not terminal.
+ if [ -t 0 ]; then
+ screen ./bsp-test.sh
+ else
+ ./bsp-test.sh
+ fi
NUM_FAIL_CPU=`grep "CPU" $FAILST |wc -l`
NUM_PASS_CPU=`expr $NUM_CPU - $NUM_FAIL_CPU`