summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Dagnelie <[email protected]>2023-02-02 15:19:26 -0800
committerGitHub <[email protected]>2023-02-02 15:19:26 -0800
commit90f4e01f8ab89edc39bfa227032acb66ae511988 (patch)
treefe75bf7bcee5f652aa9d802b860347d8aadb4faf /tests
parentac2038a19c3b7e9ba913a850e05ba773725bd25d (diff)
Prevent error messages when running tests with no timeout
Reviewed-by: Richard Yao <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes #14450
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-runner/bin/test-runner.py.in2
1 files changed, 1 insertions, 1 deletions
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: