svn commit: r323701 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Mon Sep 18 08:44:51 UTC 2017
Author: pho
Date: Mon Sep 18 08:44:50 2017
New Revision: 323701
URL: https://svnweb.freebsd.org/changeset/base/323701
Log:
Added timeout and return fsck status.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/marcus2.sh
Modified: user/pho/stress2/misc/marcus2.sh
==============================================================================
--- user/pho/stress2/misc/marcus2.sh Mon Sep 18 08:42:04 2017 (r323700)
+++ user/pho/stress2/misc/marcus2.sh Mon Sep 18 08:44:50 2017 (r323701)
@@ -53,10 +53,22 @@ m=`su $testuser -c "limits | grep maxprocesses | awk '
export INCARNATIONS=$((m / n))
export swapINCARNATIONS=$INCARNATIONS
-su $testuser -c 'cd ..; ./run.sh marcus.cfg'
+su $testuser -c 'cd ..; ./run.sh marcus.cfg' &
+sleep 10
+start=`date '+%s'`
+while pgrep -q run; do
+ [ $((`date '+%s'` - start)) -gt 1500 ] &&
+ ../tools/killall.sh
+ sleep 10
+done
+wait
+
+n=0
while mount | grep $mntpoint | grep -q /dev/md; do
umount $mntpoint || sleep 1
+ [ $((n += 1)) -gt 300 ] && { echo FAIL; exit 1; }
done
-checkfs /dev/md${mdstart}$part
+checkfs /dev/md${mdstart}$part; s=$?
mdconfig -d -u $mdstart
+exit $s
More information about the svn-src-user
mailing list