]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Prevent error messages when running tests with no timeout
authorPaul Dagnelie <paul.dagnelie@delphix.com>
Thu, 2 Feb 2023 23:19:26 +0000 (15:19 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2023 23:19:26 +0000 (15:19 -0800)
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #14450

tests/test-runner/bin/test-runner.py.in

index cb453b266f3cb650ad60f6956c25046976ab6b01..28276ebc47e31fc4bde218104ea67be8ee983236 100755 (executable)
@@ -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: