Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2017 09:20:23 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r318343 - user/pho/stress2/misc
Message-ID:  <201705160920.v4G9KNDO026927@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705160920.v4G9KNDO026927>