]> 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)
commitb31c34859cf2ec73793bbd95ad921db325284854
tree9987b0b594c0e3da7878be3e9fcb8189ab54d046
parentb60a39ed035a6fc33893da179e034fc217c5d376
selftests/harness: Allow test to configure timeout

Commit 9feef6235f4c ("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