summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>2022-01-15 00:21:26 +0100
committerShuah Khan <skhan@linuxfoundation.org>2022-01-25 21:20:03 +0100
commit40d70d4d60974c28054a60316f2aec8810833526 (patch)
tree27ded5f1eda3bd8e850a1cd131eb950693ecff28 /tools
parentselftests: rtc: Increase test timeout so that all tests run (diff)
downloadlinux-40d70d4d60974c28054a60316f2aec8810833526.tar.xz
linux-40d70d4d60974c28054a60316f2aec8810833526.zip
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 <nfraprado@collabora.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/cpufreq/main.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/cpufreq/main.sh b/tools/testing/selftests/cpufreq/main.sh
index 31f8c9a76c5f..60ce18ed0666 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