Skip to content

Commit

Permalink
selftests: cpufreq: Write test output to stdout as well
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nícolas F. R. A. Prado authored and Shuah Khan committed Jan 25, 2022
1 parent f034cc1 commit 40d70d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/cpufreq/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,5 @@ prerequisite

# Run requested functions
clear_dumps $OUTFILE
do_test >> $OUTFILE.txt
do_test | tee -a $OUTFILE.txt
dmesg_dumps $OUTFILE

0 comments on commit 40d70d4

Please sign in to comment.