mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Set timeout for push to transifex to 30 mins instead of 10 minutes
This commit is contained in:
parent
9484870e19
commit
147d71d705
@ -59,13 +59,13 @@ else:
|
|||||||
setenv('CALIBRE_QT_PREFIX', '$SW/qt')
|
setenv('CALIBRE_QT_PREFIX', '$SW/qt')
|
||||||
|
|
||||||
|
|
||||||
def run(*args):
|
def run(*args, timeout=600):
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
args = shlex.split(args[0])
|
args = shlex.split(args[0])
|
||||||
print(' '.join(args), flush=True)
|
print(' '.join(args), flush=True)
|
||||||
p = subprocess.Popen(args)
|
p = subprocess.Popen(args)
|
||||||
try:
|
try:
|
||||||
ret = p.wait(timeout=600)
|
ret = p.wait(timeout=timeout)
|
||||||
except subprocess.TimeoutExpired as err:
|
except subprocess.TimeoutExpired as err:
|
||||||
ret = 1
|
ret = 1
|
||||||
print(err, file=sys.stderr, flush=True)
|
print(err, file=sys.stderr, flush=True)
|
||||||
@ -164,7 +164,7 @@ username = api
|
|||||||
install_env()
|
install_env()
|
||||||
get_tx()
|
get_tx()
|
||||||
os.environ['TX'] = os.path.abspath('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':
|
elif action == 'test':
|
||||||
os.environ['CI'] = 'true'
|
os.environ['CI'] = 'true'
|
||||||
os.environ['OPENSSL_MODULES'] = os.path.join(SW, 'lib', 'ossl-modules')
|
os.environ['OPENSSL_MODULES'] = os.path.join(SW, 'lib', 'ossl-modules')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user