rcutorture: Simplify logging
authorSeongJae Park <sj38.park@gmail.com>
Fri, 3 Nov 2017 10:17:27 +0000 (19:17 +0900)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 11 Dec 2017 17:18:26 +0000 (09:18 -0800)
commitfa48beb5f485a82a15f777198c770feb6d01c794
tree043479f79ae750564889b2313ef3ce1aa4534f44
parent81394e3f6df8f72895354fe29a1ef60cb0765a78
rcutorture: Simplify logging

Both the 'kvm.sh' and 'kvm-test-1-run.sh' scripts log messages by printing
the message to 'stdout' and then also printing it into the log file.
Generation of the message thus occurs twice, once for 'stdout' and once
for the log file.  Moreover, many of the messages contain 'date' output,
which results in date being invoked twice (once for stdout print, once
for log file write).  As a result, the date information in stdout and
log file can differ, which could cause confusion.

This commit therefore simplifies the logging procedure by using 'tee'.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
tools/testing/selftests/rcutorture/bin/kvm.sh