svn commit: r318343 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Tue May 16 09:20:24 UTC 2017


Author: pho
Date: Tue May 16 09:20:23 2017
New Revision: 318343
URL: https://svnweb.freebsd.org/changeset/base/318343

Log:
  Cap runtime.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/newfs.sh

Modified: user/pho/stress2/misc/newfs.sh
==============================================================================
--- user/pho/stress2/misc/newfs.sh	Tue May 16 09:12:29 2017	(r318342)
+++ user/pho/stress2/misc/newfs.sh	Tue May 16 09:20:23 2017	(r318343)
@@ -40,6 +40,7 @@ mdconfig -a -t swap -s 1g -u $mdstart
 bsdlabel -w md$mdstart auto
 
 echo "Expect warnings from SU and SU+J."
+start=`date '+%s'`
 for opt in -O1 -O2 -U -j; do
 	echo "Testing newfs with option $opt."
 	blocksize=4096
@@ -61,5 +62,11 @@ for opt in -O1 -O2 -U -j; do
 		done
 		blocksize=$((blocksize * 2))
 	done
+	if [ $((`date '+%s'` - start)) -gt 1800 ]; then
+		echo "Timed out"
+		s=1
+		break
+	fi
 done
+exit $s
 mdconfig -d -u $mdstart


More information about the svn-src-user mailing list