summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-02-24 18:25:07 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-02-25 00:34:39 +0900
commitc5448d1400aa70ae7fd4281d2c855e89686f1200 (patch)
tree8f1920386603b12051339963e6d889ff407d90d1 /tests
parent647e28c37c4746641e77d88c5e35f5dd2d91f214 (diff)
downloadbuildstream-c5448d1400aa70ae7fd4281d2c855e89686f1200.tar.gz
testutils/runcli.py: Print something helpful if BuildStream fails to exit properly
When testing a recent patch, I had missed a return of the exit code in `bst shell` resulting in the CLI exiting with `None`; this patch makes the fixture more helpful, where previously it just printed `None`
Diffstat (limited to 'tests')
-rw-r--r--tests/testutils/runcli.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py
index 3479364f7..a913c4aa2 100644
--- a/tests/testutils/runcli.py
+++ b/tests/testutils/runcli.py
@@ -293,6 +293,7 @@ class Cli():
exit_code = e.code
if not isinstance(exit_code, int):
+ sys.stdout.write('Program exit code was not an integer: ')
sys.stdout.write(str(exit_code))
sys.stdout.write('\n')
exit_code = 1