kselftest/runner: Print new line in print of timeout log
authorSeongJae Park <sjpark@amazon.de>
Mon, 2 Dec 2019 11:42:20 +0000 (12:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:21:26 +0000 (12:21 +0100)
commit277df4ca18da0ab0e2e83c476dde2c8f74177c41
treed7a9ebb8a94e131e830f3babf4ceb025c5c0db1f
parent66ae15854332c20397fcc82c4002e799bd57bb97
kselftest/runner: Print new line in print of timeout log

[ Upstream commit d187801d1a46519d2a322f879f7c8f85c685372e ]

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 <sjpark@amazon.de>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kselftest/runner.sh