]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/harness: Allow test to configure timeout
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 23 May 2019 22:42:22 +0000 (00:42 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 24 May 2019 19:39:46 +0000 (13:39 -0600)
commitfc9827c6668c08abf53eadc443e01e5b847b736c
tree9987b0b594c0e3da7878be3e9fcb8189ab54d046
parent90052555ea6bb07739ecbcd191c6c542f918fc78
selftests/harness: Allow test to configure timeout

Commit 75be0ea653bb ("selftests/harness: Add 30 second timeout per test")
adds an hardcoded 30s timeout to all tests. Unfortunately, rtctest has two
tests taking up to 60s. Allow for individual tests to define their own
timeout.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest_harness.h