liucougar  committed 2621d29

make test_keyboardinterrupt multiprocess plugin test more robust on slow
machines (like the CI server)

  • Participants
  • Parent commits 7f1009a

Comments (0)

Files changed (1)

File functional_tests/test_multiprocessing/

     logfile = mktemp()
     process = Popen([sys.executable,runner,os.path.join(support,case),logfile], preexec_fn=os.setsid, stdout=PIPE, stderr=PIPE, bufsize=-1)
-    sleep(1)
+    #wait until logfile is created:
+    retry=100
+    while not os.path.exists(logfile):
+        sleep(0.1)
+        retry -= 1
+        if not retry:
+            raise Exception('Timeout while waiting for log file to be created by')
     os.killpg(, signal.SIGINT)
     return process, logfile