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>2015-01-21 21:24:00 -0500
commit098899d07de513e90d66e00b33631d846d19d1b5 (patch)
tree2f067dca6c1783918490a2f071f204a2891661b1
parent7d67790b8292e320fb8a6e11144a0cce11a615dc (diff)
downloadmce-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-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"