diff options
author | Chen, Gong <gong.chen@linux.intel.com> | 2014-03-30 22:51:06 -0400 |
---|---|---|
committer | Chen, Gong <gong.chen@linux.intel.com> | 2014-04-09 03:22:16 -0400 |
commit | dd6081af9e22fd489f24eb3435a56fa4275e60ee (patch) | |
tree | 2ba75c5e1e78b1e6790781e421c089251471fc54 | |
parent | e0fb614a801b17c1f2c63432781ebae4d6877d32 (diff) | |
download | mce-test-dd6081af9e22fd489f24eb3435a56fa4275e60ee.tar.gz |
core_recovery: Fix the bug in DCU/IFU test case
If BIOS is bogus so that error injection can't be executed
as expected, curent test case will fail. Fix this bug.
Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
-rwxr-xr-x | cases/function/core_recovery/srar_recovery.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cases/function/core_recovery/srar_recovery.sh b/cases/function/core_recovery/srar_recovery.sh index f011d3d..7b13b5b 100755 --- a/cases/function/core_recovery/srar_recovery.sh +++ b/cases/function/core_recovery/srar_recovery.sh @@ -73,8 +73,11 @@ sleep 1 echo go > trigger sleep 2 rm -f trigger log -pgrep core_recovery > /dev/null 2>&1 | xargs kill -9 > /dev/null 2>&1 -[ $? -eq 0 ] && invalid "The poisoned process can't be killed by kernel. Test fails!" +id=`pgrep core_recovery` +if [ X"$id" != X ]; then + echo $id | xargs kill -9 > /dev/null 2>&1 + invalid "The poisoned process can't be killed by kernel automatically. Test fails!" +fi if [ $1 == "-d" ]; then echo "SRAR/DCU test passes!" |