diff mbox series

[SRU,Eoan,1/1] UBUNTU: SAUCE: selftests/seccomp: use 90s as timeout

Message ID 20200601124539.1185145-2-cascardo@canonical.com
State New
Headers show
Series seccomp selftest times out on Eoan | expand

Commit Message

Thadeu Lima de Souza Cascardo June 1, 2020, 12:45 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1881576

As seccomp_benchmark tries to calibrate how many samples will take more
than 5 seconds to execute, it may end up picking up a number of samples
that take 10 (but up to 12) seconds. As the calibration will take double
that time, it takes around 20 seconds. Then, it executes the whole thing
again, and then once more, with some added overhead. So, the thing might
take more than 40 seconds, which is too close to the 45s timeout.

That is very dependent on the system where it's executed, so may not be
observed always, but it has been observed on x86 VMs. Using a 90s timeout
seems safe enough.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
---
 tools/testing/selftests/seccomp/settings | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/seccomp/settings
diff mbox series

Patch

diff --git a/tools/testing/selftests/seccomp/settings b/tools/testing/selftests/seccomp/settings
new file mode 100644
index 000000000000..ba4d85f74cd6
--- /dev/null
+++ b/tools/testing/selftests/seccomp/settings
@@ -0,0 +1 @@ 
+timeout=90