torture: Make torture.sh allmodconfig retain and label output
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 26 Nov 2020 00:37:14 +0000 (16:37 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 01:03:43 +0000 (17:03 -0800)
This commit places "---" markers in the torture.sh script's allmodconfig
output, and uses "<<" to avoid overwriting earlier output from this
build test.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/torture.sh

index a01079ea7473581e859d165b385f0d9303f0a9b9..e2c97f91cac3a35f954188d233c5b3a9feb2e7a9 100755 (executable)
@@ -238,9 +238,12 @@ then
        echo " --- allmodconfig:" Start `date` | tee -a $T/log
        amcdir="tools/testing/selftests/rcutorture/res/$ds/allmodconfig"
        mkdir -p "$amcdir"
-       make -j$MAKE_ALLOTED_CPUS clean > "$amcdir/Make.out" 2>&1
-       make -j$MAKE_ALLOTED_CPUS allmodconfig > "$amcdir/Make.out" 2>&1
-       make -j$MAKE_ALLOTED_CPUS > "$amcdir/Make.out" 2>&1
+       echo " --- make clean" > "$amcdir/Make.out" 2>&1
+       make -j$MAKE_ALLOTED_CPUS clean >> "$amcdir/Make.out" 2>&1
+       echo " --- make allmodconfig" >> "$amcdir/Make.out" 2>&1
+       make -j$MAKE_ALLOTED_CPUS allmodconfig >> "$amcdir/Make.out" 2>&1
+       echo " --- make " >> "$amcdir/Make.out" 2>&1
+       make -j$MAKE_ALLOTED_CPUS >> "$amcdir/Make.out" 2>&1
        retcode="$?"
        echo $retcode > "$amcdir/Make.exitcode"
        if test "$retcode" == 0