From: NĂ­colas F. R. A. Prado Date: Fri, 14 Jan 2022 23:21:26 +0000 (-0500) Subject: selftests: cpufreq: Write test output to stdout as well X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=40d70d4d60974c28054a60316f2aec8810833526;p=linux.git selftests: cpufreq: Write test output to stdout as well Use 'tee' to send the test output to stdout in addition to the current output file. This makes the output easier to handle in automated test systems and is superior to only later dumping the output file contents to stdout, since this way the test output can be interleaved with other log messages, like from the kernel, so that chronology is preserved, making it easier to detect issues. Signed-off-by: NĂ­colas F. R. A. Prado Acked-by: Viresh Kumar Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/cpufreq/main.sh b/tools/testing/selftests/cpufreq/main.sh index 31f8c9a76c5ff..60ce18ed06660 100755 --- a/tools/testing/selftests/cpufreq/main.sh +++ b/tools/testing/selftests/cpufreq/main.sh @@ -194,5 +194,5 @@ prerequisite # Run requested functions clear_dumps $OUTFILE -do_test >> $OUTFILE.txt +do_test | tee -a $OUTFILE.txt dmesg_dumps $OUTFILE