diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-09-22 12:41:01 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-09-22 12:39:39 +0200 |
commit | fa427cef130583440779bce9eacfda537c2e6d14 (patch) | |
tree | 0d0236817ecf7a73d149629f5569d5c183a05a6f /qa/pull-tester | |
parent | cf5ebaa921a939cc3a81948a559c1f1ab53d68b6 (diff) |
[qa] pull-tester: Only print output when failed
Diffstat (limited to 'qa/pull-tester')
-rwxr-xr-x | qa/pull-tester/rpc-tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py index 9e187b019b..07cd16cba6 100755 --- a/qa/pull-tester/rpc-tests.py +++ b/qa/pull-tester/rpc-tests.py @@ -215,8 +215,8 @@ def runtests(): time_sum += duration print('\n' + BOLD[1] + name + BOLD[0] + ":") - print(stdout) - print('stderr:\n' if not stderr == '' else '', stderr) + print('' if passed else stdout + '\n', end='') + print('' if stderr == '' else 'stderr:\n' + stderr + '\n', end='') results += "%s | %s | %s s\n" % (name.ljust(max_len_name), str(passed).ljust(6), duration) print("Pass: %s%s%s, Duration: %s s\n" % (BOLD[1], passed, BOLD[0], duration)) results += BOLD[1] + "\n%s | %s | %s s (accumulated)" % ("ALL".ljust(max_len_name), str(all_passed).ljust(6), time_sum) + BOLD[0] |