]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitd51f1f14870a3401dbcab0b737773bdc70f54a25
tree9987b0b594c0e3da7878be3e9fcb8189ab54d046
parent4a075bd4e13f6dd07a8438e0580629a3fba3f58e
selftests/harness: Allow test to configure timeout

Commit a745f7af3cbd ("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