Skip to content

Commit

Permalink
Set timeout for push to transifex to 30 mins instead of 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 8, 2024
1 parent 9484870 commit 147d71d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/unix-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 147d71d

Please sign in to comment.