diff options
author | Huang Ying <ying.huang@intel.com> | 2009-06-15 11:49:06 +0800 |
---|---|---|
committer | Huang Ying <ying.huang@intel.com> | 2009-06-15 11:49:06 +0800 |
commit | 115046c346ccc29b5aa27ea4b84f5e652aa43dd3 (patch) | |
tree | a75193f2a8b6fb194297a965999e341df855310d | |
parent | a0391bfced8818623237912ee8445c2a1302f7ba (diff) | |
download | mce-test-115046c346ccc29b5aa27ea4b84f5e652aa43dd3.tar.gz |
Fix kernel logging mechanism on busy machine
The speed of kernel output log is too slow to be catched on some
machine. And there is a random sleep mechansim for random testing.
So we move random sleep before kernel log extracting, and extend
sleep time to at least 5 seconds.
Reported-by: Jin Dongming <jin.dongming@np.css.fujitsu.com>
-rwxr-xr-x | drivers/simple/driver.sh | 2 | ||||
-rw-r--r-- | lib/functions.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/simple/driver.sh b/drivers/simple/driver.sh index cc5c2af..1936631 100755 --- a/drivers/simple/driver.sh +++ b/drivers/simple/driver.sh @@ -77,10 +77,10 @@ test_all() rm -rf $WDIR/$this_case/* local err_log=$WDIR/$this_case/err_log - random_sleep klog_begin trigger 2>$err_log | tee -a $RDIR/result chk_err + random_sleep klog_end get_result 2>$err_log | tee -a $RDIR/result chk_err diff --git a/lib/functions.sh b/lib/functions.sh index a5efdde..1abccfc 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -51,7 +51,7 @@ check_kern_warning_bug() random_sleep() { - local s=$((RANDOM / 6553)) + local s=$((RANDOM / 13107 + 5)) sleep $s } |