Skip to content

Commit 45eb1bf

Browse files
musamaanjumshuahkh
authored andcommitted
selftests: tpm2: redirect python unittest logs to stdout
The python unittest module writes all its output to stderr, even when the run is clean. Redirect its output logs to stdout. Cc: Jarkko Sakkinen <[email protected]> Signed-off-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 8400291 commit 45eb1bf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/testing/selftests/tpm2/test_async.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ksft_skip=4
77
[ -e /dev/tpm0 ] || exit $ksft_skip
88
[ -e /dev/tpmrm0 ] || exit $ksft_skip
99

10-
python3 -m unittest -v tpm2_tests.AsyncTest
10+
python3 -m unittest -v tpm2_tests.AsyncTest 2>&1

tools/testing/selftests/tpm2/test_smoke.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ ksft_skip=4
66

77
[ -e /dev/tpm0 ] || exit $ksft_skip
88

9-
python3 -m unittest -v tpm2_tests.SmokeTest
9+
python3 -m unittest -v tpm2_tests.SmokeTest 2>&1

tools/testing/selftests/tpm2/test_space.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ ksft_skip=4
66

77
[ -e /dev/tpmrm0 ] || exit $ksft_skip
88

9-
python3 -m unittest -v tpm2_tests.SpaceTest
9+
python3 -m unittest -v tpm2_tests.SpaceTest 2>&1

0 commit comments

Comments
 (0)