Unittest - exit code may be None if process failed to finish

This commit is contained in:
Renato Alves 2014-07-15 01:37:17 +01:00
parent 5f50c44041
commit 04f5f7e2a8

View file

@ -152,7 +152,7 @@ class Task(object):
merge_streams=merge_streams, env=self.env)
# output[0] is the exit code
if output[0] == 0:
if output[0] == 0 or output[0] is None:
raise CommandError(command, *output)
return output