Skip to content

Commit 40d70d4

Browse files
nfrapradoshuahkh
authored andcommitted
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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent f034cc1 commit 40d70d4

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/cpufreq

1 file changed

+1
-1
lines changed

tools/testing/selftests/cpufreq/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,5 @@ prerequisite
194194

195195
# Run requested functions
196196
clear_dumps $OUTFILE
197-
do_test >> $OUTFILE.txt
197+
do_test | tee -a $OUTFILE.txt
198198
dmesg_dumps $OUTFILE

0 commit comments

Comments
 (0)