From 576bc2e5e6af1d580ba97327cb2023b1d1bd868e Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Wed, 7 Aug 2019 12:11:30 +0200 Subject: [PATCH] tests: increase the timeout for the subprocess to receive the quit signal On a very loaded machine, the process might not receive the quit signal in a timely manner, and this introduce false positive results. Add a longer timeout. This shouldn't interfere with the global time spent in the tests, but will allow some loaded environment to pass the tests. Signed-off-by: Benjamin Tissoires --- tools/test-tool-option-parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test-tool-option-parsing.py b/tools/test-tool-option-parsing.py index bdfe99b..d5fbbd5 100755 --- a/tools/test-tool-option-parsing.py +++ b/tools/test-tool-option-parsing.py @@ -43,7 +43,7 @@ def run_command(args): p.wait(0.7) except subprocess.TimeoutExpired: p.send_signal(3) # SIGQUIT - stdout, stderr = p.communicate(timeout=2) + stdout, stderr = p.communicate(timeout=5) if p.returncode == -3: p.returncode = 0 return p.returncode, stdout.decode('UTF-8'), stderr.decode('UTF-8') -- 2.7.4