Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2017 08:49:03 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r319107 - user/pho/stress2/misc
Message-ID:  <201705290849.v4T8n3OC088882@repo.freebsd.org>

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



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