aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2022-08-07 08:35:47 +0000
committerPeter Holm <pho@FreeBSD.org>2022-08-07 08:35:47 +0000
commitac79b5f327941115f58c0ac4d00bd72b19d43543 (patch)
treed2806dd6f8d1ef5e4bc9223f4b61237fa6a8a0b2 /tools
parenta3d933cc4f2300b476151c2dd3fa455882f3aa97 (diff)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test/stress2/misc/badcode3.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/test/stress2/misc/badcode3.sh b/tools/test/stress2/misc/badcode3.sh
index e0a10d0074a4..61dce1cb82c3 100755
--- a/tools/test/stress2/misc/badcode3.sh
+++ b/tools/test/stress2/misc/badcode3.sh
@@ -39,13 +39,18 @@ mdconfig -a -t swap -s 1g -u $mdstart
newfs $newfs_flags md$mdstart > /dev/null
mount /dev/md$mdstart $mntpoint
chmod 777 $mntpoint
+export badcodeLOAD=100
+export RUNDIR=$mntpoint/stressX
+mkdir -p $RUNDIR
+chmod 0777 $RUNDIR
here=`pwd`
cd $mntpoint
(cd $here/../testcases/swap; ./swap -t 5m -i 20) &
sleep 2
while pgrep -q swap; do
- timeout 1m limits -c 0 $here/../testcases/badcode/badcode -t 1m -i 20
+ su $testuser -c \
+ "timeout 1m limits -c 0 $here/../testcases/badcode/badcode -t 1m -i 20"
done
wait
cd $here