aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/testing/selftests/rcutorture/bin/kvm.sh34
1 files changed, 17 insertions, 17 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index cde25d8546da..521f9e01074d 100644
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -175,31 +175,29 @@ fi
175if test -z "$resdir" 175if test -z "$resdir"
176then 176then
177 resdir=$KVM/res 177 resdir=$KVM/res
178 if ! test -e $resdir 178fi
179 then 179
180 mkdir $resdir || : 180if test "$dryrun" = ""
181 fi 181then
182else
183 if ! test -e $resdir 182 if ! test -e $resdir
184 then 183 then
185 mkdir -p "$resdir" || : 184 mkdir -p "$resdir" || :
186 fi 185 fi
187fi 186 mkdir $resdir/$ds
188mkdir $resdir/$ds 187
189if test "$dryrun" = ""
190then
191 # Be noisy only if running the script. 188 # Be noisy only if running the script.
192 echo Results directory: $resdir/$ds 189 echo Results directory: $resdir/$ds
193 echo $scriptname $args 190 echo $scriptname $args
194fi
195touch $resdir/$ds/log
196echo $scriptname $args >> $resdir/$ds/log
197 191
198pwd > $resdir/$ds/testid.txt 192 touch $resdir/$ds/log
199if test -d .git 193 echo $scriptname $args >> $resdir/$ds/log
200then 194
201 git status >> $resdir/$ds/testid.txt 195 pwd > $resdir/$ds/testid.txt
202 git rev-parse HEAD >> $resdir/$ds/testid.txt 196 if test -d .git
197 then
198 git status >> $resdir/$ds/testid.txt
199 git rev-parse HEAD >> $resdir/$ds/testid.txt
200 fi
203fi 201fi
204 202
205# Create a file of test-name/#cpus pairs, sorted by decreasing #cpus. 203# Create a file of test-name/#cpus pairs, sorted by decreasing #cpus.
@@ -371,6 +369,8 @@ then
371 echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD" 369 echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD"
372 echo RCU_QEMU_INTERACTIVE="$RCU_QEMU_INTERACTIVE; export RCU_QEMU_INTERACTIVE" 370 echo RCU_QEMU_INTERACTIVE="$RCU_QEMU_INTERACTIVE; export RCU_QEMU_INTERACTIVE"
373 echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC" 371 echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC"
372 echo "mkdir -p "$resdir" || :"
373 echo "mkdir $resdir/$ds"
374 cat $T/script 374 cat $T/script
375 exit 0 375 exit 0
376elif test "$dryrun" = sched 376elif test "$dryrun" = sched