From dab5a140ef81d759dcbe272034ef446b47445c87 Mon Sep 17 00:00:00 2001 From: Elmom Date: Thu, 7 Oct 2010 17:19:45 +0300 Subject: [PATCH] Raised the default timeout for calling openscad to make tests not fail --- openscad_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openscad_utils.py b/openscad_utils.py index 03b3bf6..3f2875e 100644 --- a/openscad_utils.py +++ b/openscad_utils.py @@ -29,7 +29,7 @@ def collect_test_modules(dirpath=None): class Timeout(Exception): pass -def call_openscad(path, stlpath, timeout=1): +def call_openscad(path, stlpath, timeout=5): command = ['openscad', '-s', str(stlpath), str(path)] print command if timeout: @@ -37,7 +37,7 @@ def call_openscad(path, stlpath, timeout=1): proc = Popen(command, stdout=PIPE, stderr=PIPE, close_fds=True) calltime = time.time() - time.sleep(0.01) + time.sleep(0.05) #print calltime while True: if proc.poll() is not None: