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

Peter Holm pho at FreeBSD.org
Sat Sep 23 13:37:03 UTC 2017


Author: pho
Date: Sat Sep 23 13:37:02 2017
New Revision: 323953
URL: https://svnweb.freebsd.org/changeset/base/323953

Log:
  No need to use grep(1).
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/marcus2.sh
  user/pho/stress2/misc/marcus5.sh

Modified: user/pho/stress2/misc/marcus2.sh
==============================================================================
--- user/pho/stress2/misc/marcus2.sh	Sat Sep 23 12:44:42 2017	(r323952)
+++ user/pho/stress2/misc/marcus2.sh	Sat Sep 23 13:37:02 2017	(r323953)
@@ -49,7 +49,7 @@ export runRUNTIME=20m
 export RUNDIR=$mntpoint/stressX
 
 n=`find ../testcases -perm -1 -type f | wc -l`
-m=`su $testuser -c "limits | grep maxprocesses | awk '{print \\$NF}'"`
+m=`su $testuser -c "limits | awk '/maxprocesses/ {print \\$NF}'"`
 export INCARNATIONS=$((m / n))
 export swapINCARNATIONS=$INCARNATIONS
 

Modified: user/pho/stress2/misc/marcus5.sh
==============================================================================
--- user/pho/stress2/misc/marcus5.sh	Sat Sep 23 12:44:42 2017	(r323952)
+++ user/pho/stress2/misc/marcus5.sh	Sat Sep 23 13:37:02 2017	(r323953)
@@ -53,7 +53,7 @@ size=$((`sysctl -n hw.physmem` / 1024 / 1024))
     { echo "deadlkres must be disabled for this test."; exit 0; }
 
 n=`find ../testcases -perm -1 -type f | wc -l`
-m=`su $testuser -c "limits | grep maxprocesses | awk '{print \\$NF}'"`
+m=`su $testuser -c "limits | awk '/maxprocesses/ {print \\$NF}'"`
 
 export RUNDIR=$mntpoint/stressX
 export INCARNATIONS=$((m / n))


More information about the svn-src-user mailing list