diff options
author | Chen Gong <gong.chen@linux.intel.com> | 2012-11-07 03:25:11 -0500 |
---|---|---|
committer | Chen, Gong <gong.chen@linux.intel.com> | 2015-01-21 21:24:00 -0500 |
commit | 098899d07de513e90d66e00b33631d846d19d1b5 (patch) | |
tree | 2f067dca6c1783918490a2f071f204a2891661b1 | |
parent | 7d67790b8292e320fb8a6e11144a0cce11a615dc (diff) | |
download | mce-test-098899d07de513e90d66e00b33631d846d19d1b5.tar.gz |
Update test result report information for ERST test
Add some information to remind one possible reasons
when meeting failures.
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
-rwxr-xr-x | cases/function/erst-inject/runtest.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cases/function/erst-inject/runtest.sh b/cases/function/erst-inject/runtest.sh index 540536c..253ebe3 100755 --- a/cases/function/erst-inject/runtest.sh +++ b/cases/function/erst-inject/runtest.sh @@ -67,7 +67,7 @@ MODSTATUS=0 err() { echo - echo ERROR: "$*" + echo -e ERROR: "$*" echo ERROR: "Please check dmesg or log for further information" echo -e "\n\nTEST FAILS" exit 1 @@ -100,7 +100,8 @@ ID=0xdeadbeaf echo -n "Write one error record into ERST... " $ERST -i $ID 1>/dev/null if [ ! $? -eq 0 ]; then - err "ERST writing operation fails" + err "ERST writing operation fails.\n"\ +"Please confirm if command parameter erst_disable is used or hardware not available" fi sleep 1 echo "DONE" |