summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2018-07-15 16:49:40 +0200
committerSam Thursfield <sam@afuera.me.uk>2018-07-16 16:26:32 +0200
commitc3d847e5e41e5b819db8a181a89f7e88bedb22b5 (patch)
tree2dad95b7e045494d6eb1232a72223d2afef7e472
parentccb1cc8c45aa0274a6e420172a2e0a521512c96d (diff)
downloadtracker-c3d847e5e41e5b819db8a181a89f7e88bedb22b5.tar.gz
functional-tests: Avoid crash when TRACKER_TESTS_VERBOSE is set
-rw-r--r--tests/functional-tests/common/utils/helpers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/functional-tests/common/utils/helpers.py b/tests/functional-tests/common/utils/helpers.py
index b4c02b331..45b5b7f3e 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/tests/functional-tests/common/utils/helpers.py
@@ -120,7 +120,10 @@ class Helper:
return True # continue
else:
self.process_watch_timeout = 0
- error = self.process.stderr.read()
+ if options.is_verbose():
+ error = ""
+ else:
+ error = self.process.stderr.read()
raise RuntimeError("%s exited with status: %i\n%s" % (self.PROCESS_NAME, status, error))
def _timeout_on_idle_cb (self):