Skip to content
Snippets Groups Projects
Commit c5448d14 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

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`
parent 647e28c3
No related branches found
No related tags found
Loading
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment