From 90f4e01f8ab89edc39bfa227032acb66ae511988 Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Thu, 2 Feb 2023 15:19:26 -0800 Subject: [PATCH] Prevent error messages when running tests with no timeout Reviewed-by: Richard Yao Reviewed-by: Brian Behlendorf Signed-off-by: Paul Dagnelie Closes #14450 --- tests/test-runner/bin/test-runner.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-runner/bin/test-runner.py.in b/tests/test-runner/bin/test-runner.py.in index cb453b266..28276ebc4 100755 --- a/tests/test-runner/bin/test-runner.py.in +++ b/tests/test-runner/bin/test-runner.py.in @@ -297,7 +297,7 @@ User: %s proc = Popen(privcmd, stdout=PIPE, stderr=PIPE) # Allow a special timeout value of 0 to mean infinity if int(self.timeout) == 0: - self.timeout = sys.maxsize + self.timeout = sys.maxsize / (10 ** 9) t = Timer(int(self.timeout), self.kill_cmd, [proc]) try: -- 2.39.5