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

Peter Holm pho at FreeBSD.org
Mon May 29 08:49:05 UTC 2017


Author: pho
Date: Mon May 29 08:49:03 2017
New Revision: 319107
URL: https://svnweb.freebsd.org/changeset/base/319107

Log:
  Check that the source is available.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/contigmalloc.sh
  user/pho/stress2/misc/contigmalloc2.sh

Modified: user/pho/stress2/misc/contigmalloc.sh
==============================================================================
--- user/pho/stress2/misc/contigmalloc.sh	Mon May 29 08:47:36 2017	(r319106)
+++ user/pho/stress2/misc/contigmalloc.sh	Mon May 29 08:49:03 2017	(r319107)
@@ -44,6 +44,7 @@
 # Fixed by r271351.
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
+[ -d /usr/src/sys ] || exit 0
 
 . ../default.cfg
 

Modified: user/pho/stress2/misc/contigmalloc2.sh
==============================================================================
--- user/pho/stress2/misc/contigmalloc2.sh	Mon May 29 08:47:36 2017	(r319106)
+++ user/pho/stress2/misc/contigmalloc2.sh	Mon May 29 08:49:03 2017	(r319107)
@@ -34,6 +34,7 @@
 # Fixed by r284207.
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
+[ -d /usr/src/sys ] || exit 0
 
 . ../default.cfg
 


More information about the svn-src-user mailing list