Changeset: 66bdbb41f912 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/66bdbb41f912
Modified Files:
        testing/Mtest.py.in
Branch: Dec2025
Log Message:

Wait forever if -t0 specified.


diffs (21 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -2902,7 +2902,7 @@ class ServerClass:
                 if os.path.exists(self.pollfile):
                     break
                 # wait at most 30 seconds for the server to start
-                if time.time() > starttime + 30:
+                if self.timeout and time.time() > starttime + 30:
                     if procdebug:
                         print('timeout starting server')
                     if os.name == 'nt':
@@ -2936,7 +2936,7 @@ class ServerClass:
                 curtime = time.time()
                 if curtime >= endtime:
                     break
-                line = proc.stdout.readline(timeout=endtime - curtime)
+                line = proc.stdout.readline(timeout=endtime - curtime if 
self.timeout else None)
                 if not line:
                     break
                 self.outfile.write(line)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to