Commit c66c0f94 authored by Paul E. McKenney's avatar Paul E. McKenney

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 8847bd49
...@@ -174,10 +174,17 @@ do ...@@ -174,10 +174,17 @@ do
shift shift
done done
ds="`date +%Y.%m.%d-%H.%M.%S`-torture"
startdate="`date`"
starttime="`get_starttime`"
T=/tmp/torture.sh.$$ T=/tmp/torture.sh.$$
trap 'rm -rf $T' 0 2 trap 'rm -rf $T' 0 2
mkdir $T mkdir $T
echo " --- " $scriptname $args | tee -a $T/log
echo " --- Results directory: " $ds | tee -a $T/log
# Calculate rcutorture defaults and apportion time # Calculate rcutorture defaults and apportion time
if test -z "$configs_rcutorture" if test -z "$configs_rcutorture"
then then
...@@ -217,10 +224,6 @@ fi ...@@ -217,10 +224,6 @@ fi
touch $T/failures touch $T/failures
touch $T/successes 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. # torture_one - Does a single kvm.sh run.
# #
# Usage: # Usage:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment