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

Peter Holm pho at FreeBSD.org
Tue Apr 9 08:24:35 UTC 2013


Author: pho
Date: Tue Apr  9 08:24:34 2013
New Revision: 249295
URL: http://svnweb.freebsd.org/changeset/base/249295

Log:
  Fix type and do not test as root.

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

Modified: user/pho/stress2/misc/nfs5.sh
==============================================================================
--- user/pho/stress2/misc/nfs5.sh	Tue Apr  9 07:11:22 2013	(r249294)
+++ user/pho/stress2/misc/nfs5.sh	Tue Apr  9 08:24:34 2013	(r249295)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 #
-# Copyright (c) 2008-2011 Peter Holm <pho at FreeBSD.org>
+# Copyright (c) 2008-2013 Peter Holm <pho at FreeBSD.org>
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,6 @@
 # $FreeBSD$
 #
 
-
 . ../default.cfg
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
@@ -43,7 +42,7 @@ mdconfig -l | grep -q ${mdstart}  &&  md
 mdconfig -a -t vnode -f $D -u $mdstart
 
 bsdlabel -w md${mdstart} auto
-newfs -U md${mdstart}${part}
+newfs -U md${mdstart}${part} > /dev/null
 mount /dev/md${mdstart}${part} $mntpoint
 
 mkdir ${mntpoint}/stressX
@@ -52,11 +51,11 @@ chmod 777 ${mntpoint}/stressX
 [ ! -d ${mntpoint}2 ] &&  mkdir ${mntpoint}2
 chmod 777 ${mntpoint}2
 
-mount -t nfs -o tcp -o retrycnt=3 -o intr -o soft -o rw 127.0.0.1:/$mntpoint $mntpoint2
+mount -t nfs -o tcp -o retrycnt=3 -o intr -o soft -o rw 127.0.0.1:/$mntpoint ${mntpoint}2
 
 export RUNDIR=${mntpoint}2/stressX
 export runRUNTIME=4m
-(cd ..; ./run.sh disk.cfg) &
+su $testuser -c "(cd ..; ./run.sh disk.cfg > /dev/null 2>&1)" &
 sleep 60
 
 umount -f $mntpoint    > /dev/null 2>&1


More information about the svn-src-user mailing list