aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2012-11-07 03:25:11 -0500
committerChen Gong <gong.chen@linux.intel.com>2012-11-08 02:49:12 -0500
commit1ed95d9bdccf59b9e2e62c36ca6a8599c5a8c9d8 (patch)
tree2f067dca6c1783918490a2f071f204a2891661b1
parent6e31399c51ab5a9895fc6ffc2580ae61b9560f3d (diff)
downloadmce-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-xcases/function/erst-inject/runtest.sh5
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"