aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lib/process.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lib/process.py b/test/lib/process.py
index cac7fbd..f13cb56 100644
--- a/test/lib/process.py
+++ b/test/lib/process.py
@@ -106,13 +106,15 @@ class Process(subprocess.Popen):
return
logging.info('Terminating process %s', self.log_id)
self.terminate()
+ timeout = 3
try:
- self.wait(timeout=3)
+ self.wait(timeout=timeout)
return
except subprocess.TimeoutExpired:
pass
+ logging.info('Process %s failed to terminate in time, killing it', self.log_id)
self.kill()
- self.wait(timeout=3)
+ self.wait(timeout=timeout)
class Runner: