diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-04 18:50:57 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-05 01:59:31 -0400 |
commit | fedacfd4d42f0e4bbe1725e577216e7332aa2514 (patch) | |
tree | 697e3439930b3e5a14be7b65a5613f19b47dc222 | |
parent | a01707e70764f9e43b012f05f28f1c0e3f4f26a5 (diff) | |
download | buildstream-fedacfd4d42f0e4bbe1725e577216e7332aa2514.tar.gz |
tests/testutils/runcli.py: Print CLI commands unconditionally
We want to see them in failed test logs even if they succeeded.
-rw-r--r-- | tests/testutils/runcli.py | 10 |
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 |