summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/testutils/runcli.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py
index c4b7b7770..22d73301f 100644
--- a/tests/testutils/runcli.py
+++ b/tests/testutils/runcli.py
@@ -60,11 +60,11 @@ class Cli():
bst_args += args
result = self.cli_runner.invoke(bst_cli, bst_args)
- if result.exit_code != 0:
- command = "bst " + " ".join(bst_args)
- print("BuildStream exited with error code {} for invocation:\n\t{}"
- .format(result.exit_code, command))
- print("Program output was:\n{}".format(result.output))
+ # Some informative stdout we can observe when anything fails
+ command = "bst " + " ".join(bst_args)
+ print("BuildStream exited with code {} for invocation:\n\t{}"
+ .format(result.exit_code, command))
+ print("Program output was:\n{}".format(result.output))
return result