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
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -293,6 +293,7 @@ class Cli():


                exit_code = e.code
                exit_code = e.code
                if not isinstance(exit_code, int):
                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(str(exit_code))
                    sys.stdout.write('\n')
                    sys.stdout.write('\n')
                    exit_code = 1
                    exit_code = 1