diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2018-07-15 16:49:40 +0200 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2018-07-16 16:26:32 +0200 |
commit | c3d847e5e41e5b819db8a181a89f7e88bedb22b5 (patch) | |
tree | 2dad95b7e045494d6eb1232a72223d2afef7e472 | |
parent | ccb1cc8c45aa0274a6e420172a2e0a521512c96d (diff) | |
download | tracker-c3d847e5e41e5b819db8a181a89f7e88bedb22b5.tar.gz |
functional-tests: Avoid crash when TRACKER_TESTS_VERBOSE is set
-rw-r--r-- | tests/functional-tests/common/utils/helpers.py | 5 |
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): |