Skip to content

Commit d187801

Browse files
sj-awsshuahkh
authored andcommitted
kselftest/runner: Print new line in print of timeout log
If a timeout failure occurs, kselftest kills the test process and prints the timeout log. If the test process has killed while printing a log that ends with new line, the timeout log can be printed in middle of the test process output so that it can be seems like a comment, as below: # test_process_log not ok 3 selftests: timers: nsleep-lat # TIMEOUT This commit avoids such problem by printing one more line before the TIMEOUT failure log. Signed-off-by: SeongJae Park <[email protected]> Acked-by: Kees Cook <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 3a01963 commit d187801

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/kselftest/runner.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ run_one()
7979
if [ $rc -eq $skip_rc ]; then \
8080
echo "not ok $test_num $TEST_HDR_MSG # SKIP"
8181
elif [ $rc -eq $timeout_rc ]; then \
82+
echo "#"
8283
echo "not ok $test_num $TEST_HDR_MSG # TIMEOUT"
8384
else
8485
echo "not ok $test_num $TEST_HDR_MSG # exit=$rc"

0 commit comments

Comments
 (0)