summaryrefslogtreecommitdiff
path: root/mesontest.py
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-12-02 10:01:23 -0300
committerThibault Saunier <tsaunier@gnome.org>2016-12-02 20:04:33 -0300
commit16bdc044e4c980e871379805350a6ccbcadc942e (patch)
tree2cd40a922ce7febaa1d0c7d561e52e84f3f9b679 /mesontest.py
parente2782f7864362729417ca2810f33d67fe6d0e80d (diff)
downloadmeson-16bdc044e4c980e871379805350a6ccbcadc942e.tar.gz
mesontest: Properly let user know when a test timeout out in verbose mode
Diffstat (limited to 'mesontest.py')
-rwxr-xr-xmesontest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesontest.py b/mesontest.py
index cf10499d7..293678b26 100755
--- a/mesontest.py
+++ b/mesontest.py
@@ -207,6 +207,8 @@ class TestHarness:
try:
(stdo, stde) = p.communicate(timeout=timeout)
except subprocess.TimeoutExpired:
+ if self.options.verbose:
+ print("%s time out (After %d seconds)" % (test.name, timeout))
timed_out = True
# Python does not provide multiplatform support for
# killing a process and all its children so we need