]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
hammer: tuned timeouts to some commands
authorMichal Nowikowski <godfryd@isc.org>
Wed, 23 Jan 2019 16:27:29 +0000 (17:27 +0100)
committerMichal Nowikowski <godfryd@isc.org>
Thu, 31 Jan 2019 13:56:46 +0000 (14:56 +0100)
hammer.py

index 09e955bd42fb9580821ea0362757bc1bdaee2452..91781e08d0adeeaf88f4e6369e19db834da3b04c 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -589,7 +589,7 @@ def prepare_deps_local(features, check_times):
             packages.extend(['git'])
 
         install_cmd = 'sudo dnf -y install %s'
-        execute(install_cmd % ' '.join(packages), env=env, check_times=check_times)
+        execute(install_cmd % ' '.join(packages), env=env, timeout=120, check_times=check_times)
 
         # prepare lib4cplus as epel repos are not available for rhel 8 yet
         if revision == '8' and not os.path.exists('/usr/include/log4cplus/logger.h'):
@@ -806,7 +806,7 @@ def build_local(features, tarball_path, check_times, jobs):
         if 'shell' in features:
             cmd += ' --enable-shell'
 
-        execute(cmd, cwd=src_path, env=env, check_times=check_times)
+        execute(cmd, cwd=src_path, env=env, timeout=120, check_times=check_times)
 
         if jobs == 0:
             cpus = multiprocessing.cpu_count() - 1