]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: cpufreq: Write test output to stdout as well
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Fri, 14 Jan 2022 23:21:26 +0000 (18:21 -0500)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 25 Jan 2022 20:20:03 +0000 (13:20 -0700)
commit3a1c4cea03a6680e70cdc337e2a2688dd82c5d3b
tree27ded5f1eda3bd8e850a1cd131eb950693ecff28
parent047b9be67eea9ec7a5baf0ce782980e28ee120fe
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>
tools/testing/selftests/cpufreq/main.sh