diff options
author | Wen Jin <wenx.jin@intel.com> | 2017-10-27 23:24:06 +0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2017-10-30 09:55:56 -0700 |
commit | 74bffd8b0aa27051aeaa1983a7b23975ca8d8726 (patch) | |
tree | 04c793ea932da38a88d00dfa691b58d229fc7ded | |
parent | c841d108e4c07540027fbb990fdc8c118531084f (diff) | |
download | mce-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-x | cases/function/bsp/runtest.sh | 7 |
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` |