diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2016-11-29 15:30:22 -0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-12-01 23:38:54 +0200 |
commit | 7afb4c655281d60ef64d0378ff126a08f12a14ce (patch) | |
tree | cedc093a95fff2ed7c2975de1fb7981b7f038071 | |
parent | f1366ba42565fcce648871aaa1d2b866af71ccb5 (diff) | |
download | meson-7afb4c655281d60ef64d0378ff126a08f12a14ce.zip meson-7afb4c655281d60ef64d0378ff126a08f12a14ce.tar.gz meson-7afb4c655281d60ef64d0378ff126a08f12a14ce.tar.bz2 |
mesontest: Error out even in verbose mode when running repeatidly
-rwxr-xr-x | mesontest.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mesontest.py b/mesontest.py index 1a704f8..73c92e4 100755 --- a/mesontest.py +++ b/mesontest.py @@ -366,12 +366,12 @@ class TestHarness: else: res = self.run_single_test(wrap, t) if (res.returncode == 0 and res.should_fail) or \ - (res.returncode != 0 and not res.should_fail) and \ - not self.options.verbose: - print('Test failed:\n\n-- stdout --\n') - print(res.stdo) - print('\n-- stderr --\n') - print(res.stde) + (res.returncode != 0 and not res.should_fail): + if not self.options.verbose: + print('Test failed:\n\n-- stdout --\n') + print(res.stdo) + print('\n-- stderr --\n') + print(res.stde) return 1 return 0 |