Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit daeda23d authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Don't create results directory for dryruns



This commit prevents the results directory from being created for
dryruns.  However, a script generated from a dryrun will create
the results directory should it be run.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
parent 51b1130e
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -175,23 +175,20 @@ fi
if test -z "$resdir"
then
	resdir=$KVM/res
	if ! test -e $resdir
	then
		mkdir $resdir || :
fi
else

if test "$dryrun" = ""
then
	if ! test -e $resdir
	then
		mkdir -p "$resdir" || :
	fi
fi
	mkdir $resdir/$ds
if test "$dryrun" = ""
then

	# Be noisy only if running the script.
	echo Results directory: $resdir/$ds
	echo $scriptname $args
fi

	touch $resdir/$ds/log
	echo $scriptname $args >> $resdir/$ds/log

@@ -201,6 +198,7 @@ then
		git status >> $resdir/$ds/testid.txt
		git rev-parse HEAD >> $resdir/$ds/testid.txt
	fi
fi

# Create a file of test-name/#cpus pairs, sorted by decreasing #cpus.
touch $T/cfgcpu
@@ -371,6 +369,8 @@ then
	echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD"
	echo RCU_QEMU_INTERACTIVE="$RCU_QEMU_INTERACTIVE; export RCU_QEMU_INTERACTIVE"
	echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC"
	echo "mkdir -p "$resdir" || :"
	echo "mkdir $resdir/$ds"
	cat $T/script
	exit 0
elif test "$dryrun" = sched