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> | 2012-11-08 02:49:12 -0500 |
commit | 1ed95d9bdccf59b9e2e62c36ca6a8599c5a8c9d8 (patch) | |
tree | 2f067dca6c1783918490a2f071f204a2891661b1 | |
parent | 6e31399c51ab5a9895fc6ffc2580ae61b9560f3d (diff) | |
download | mce-test-1ed95d9bdccf59b9e2e62c36ca6a8599c5a8c9d8.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" |