diff --git a/setup/unix-ci.py b/setup/unix-ci.py index 4140170190cf..e06d7f61a531 100644 --- a/setup/unix-ci.py +++ b/setup/unix-ci.py @@ -59,13 +59,13 @@ def install_env(): setenv('CALIBRE_QT_PREFIX', '$SW/qt') -def run(*args): +def run(*args, timeout=600): if len(args) == 1: args = shlex.split(args[0]) print(' '.join(args), flush=True) p = subprocess.Popen(args) try: - ret = p.wait(timeout=600) + ret = p.wait(timeout=timeout) except subprocess.TimeoutExpired as err: ret = 1 print(err, file=sys.stderr, flush=True) @@ -164,7 +164,7 @@ def main(): install_env() get_tx() os.environ['TX'] = os.path.abspath('tx') - run(sys.executable, 'setup.py', 'pot') + run(sys.executable, 'setup.py', 'pot', timeout=30 * 60) elif action == 'test': os.environ['CI'] = 'true' os.environ['OPENSSL_MODULES'] = os.path.join(SW, 'lib', 'ossl-modules')