mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-06 19:02:48 +00:00
UBUNTU: SAUCE: kselftest/runner: avoid using timeout if timeout is disabled
Avoid using /usr/bin/timeout unnecessarily if timeout is set to 0 in the "settings" file for a specific test. NOTE: this change prevents a syscall_restart failure in the seccomp kselftest. BugLink: https://bugs.launchpad.net/bugs/1870543 Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
parent
c69301511f
commit
25eb29286b
@ -36,7 +36,7 @@ tap_prefix()
|
||||
tap_timeout()
|
||||
{
|
||||
# Make sure tests will time out if utility is available.
|
||||
if [ -x /usr/bin/timeout ] ; then
|
||||
if [ -x /usr/bin/timeout ] && [ $kselftest_timeout -gt 0 ] ; then
|
||||
/usr/bin/timeout --foreground "$kselftest_timeout" \
|
||||
/usr/bin/timeout "$kselftest_timeout" $1
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user