aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-11-27 09:04:22 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-01-06 17:03:45 -0800
commitc66c0f94b345600aea881f6c4a1dac0ff5dd1aa8 (patch)
tree35a77990542c69645fc2b3ac93126e4c86d625f8 /tools/testing/selftests/rcutorture/bin
parenttorture: Allow scenarios to be specified to torture.sh (diff)
downloadlinux-dev-c66c0f94b345600aea881f6c4a1dac0ff5dd1aa8.tar.xz
linux-dev-c66c0f94b345600aea881f6c4a1dac0ff5dd1aa8.zip
torture: Add command and results directory to torture.sh log
This commit adds the command and arguments to the torture.sh log file, and also outputs the results directory. This latter allows impatient users to quickly find the results that are being generated by the current run. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/torture.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/testing/selftests/rcutorture/bin/torture.sh
index f614011bd3dd..90ca73663999 100755
--- a/tools/testing/selftests/rcutorture/bin/torture.sh
+++ b/tools/testing/selftests/rcutorture/bin/torture.sh
@@ -174,10 +174,17 @@ do
shift
done
+ds="`date +%Y.%m.%d-%H.%M.%S`-torture"
+startdate="`date`"
+starttime="`get_starttime`"
+
T=/tmp/torture.sh.$$
trap 'rm -rf $T' 0 2
mkdir $T
+echo " --- " $scriptname $args | tee -a $T/log
+echo " --- Results directory: " $ds | tee -a $T/log
+
# Calculate rcutorture defaults and apportion time
if test -z "$configs_rcutorture"
then
@@ -217,10 +224,6 @@ fi
touch $T/failures
touch $T/successes
-ds="`date +%Y.%m.%d-%H.%M.%S`-torture"
-startdate="`date`"
-starttime="`get_starttime`"
-
# torture_one - Does a single kvm.sh run.
#
# Usage: