From 147d71d705d1f357e75ec657429ee1b1f18cb90a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Sep 2024 09:59:33 +0530 Subject: [PATCH] Set timeout for push to transifex to 30 mins instead of 10 minutes --- setup/unix-ci.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/unix-ci.py b/setup/unix-ci.py index 4140170190..e06d7f61a5 100644 --- a/setup/unix-ci.py +++ b/setup/unix-ci.py @@ -59,13 +59,13 @@ else: 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 @@ username = api 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')