Unittest - Also propagate the correct exit code

This commit is contained in:
Renato Alves 2014-10-10 16:42:41 +01:00
parent 40a95e1196
commit 53fd37cae2

View file

@ -128,7 +128,7 @@ def run_cmd_wait(cmd, input=None, stdout=PIPE, stderr=PIPE,
if exit != 0:
raise CommandError(cmd, exit, out, err)
return p.returncode, out, err
return exit, out, err
def run_cmd_wait_nofail(*args, **kwargs):