• SeongJae Park's avatar
    rcutorture: Simplify logging · fa48beb5
    SeongJae Park authored
    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: default avatarSeongJae Park <sj38.park@gmail.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    fa48beb5
kvm-test-1-run.sh 8.47 KB