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: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org
This commit is contained in:
parent
51b1130eb5
commit
daeda23de1
1 changed files with 17 additions and 17 deletions
|
@ -175,31 +175,29 @@ fi
|
||||||
if test -z "$resdir"
|
if test -z "$resdir"
|
||||||
then
|
then
|
||||||
resdir=$KVM/res
|
resdir=$KVM/res
|
||||||
if ! test -e $resdir
|
fi
|
||||||
then
|
|
||||||
mkdir $resdir || :
|
if test "$dryrun" = ""
|
||||||
fi
|
then
|
||||||
else
|
|
||||||
if ! test -e $resdir
|
if ! test -e $resdir
|
||||||
then
|
then
|
||||||
mkdir -p "$resdir" || :
|
mkdir -p "$resdir" || :
|
||||||
fi
|
fi
|
||||||
fi
|
mkdir $resdir/$ds
|
||||||
mkdir $resdir/$ds
|
|
||||||
if test "$dryrun" = ""
|
|
||||||
then
|
|
||||||
# Be noisy only if running the script.
|
# Be noisy only if running the script.
|
||||||
echo Results directory: $resdir/$ds
|
echo Results directory: $resdir/$ds
|
||||||
echo $scriptname $args
|
echo $scriptname $args
|
||||||
fi
|
|
||||||
touch $resdir/$ds/log
|
|
||||||
echo $scriptname $args >> $resdir/$ds/log
|
|
||||||
|
|
||||||
pwd > $resdir/$ds/testid.txt
|
touch $resdir/$ds/log
|
||||||
if test -d .git
|
echo $scriptname $args >> $resdir/$ds/log
|
||||||
then
|
|
||||||
git status >> $resdir/$ds/testid.txt
|
pwd > $resdir/$ds/testid.txt
|
||||||
git rev-parse HEAD >> $resdir/$ds/testid.txt
|
if test -d .git
|
||||||
|
then
|
||||||
|
git status >> $resdir/$ds/testid.txt
|
||||||
|
git rev-parse HEAD >> $resdir/$ds/testid.txt
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a file of test-name/#cpus pairs, sorted by decreasing #cpus.
|
# Create a file of test-name/#cpus pairs, sorted by decreasing #cpus.
|
||||||
|
@ -371,6 +369,8 @@ then
|
||||||
echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD"
|
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_INTERACTIVE="$RCU_QEMU_INTERACTIVE; export RCU_QEMU_INTERACTIVE"
|
||||||
echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC"
|
echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC"
|
||||||
|
echo "mkdir -p "$resdir" || :"
|
||||||
|
echo "mkdir $resdir/$ds"
|
||||||
cat $T/script
|
cat $T/script
|
||||||
exit 0
|
exit 0
|
||||||
elif test "$dryrun" = sched
|
elif test "$dryrun" = sched
|
||||||
|
|
Loading…
Reference in a new issue