]> granicus.if.org Git - zziplib/commitdiff
report a run-error as an exception
authorGuido Draheim <guidod@gmx.de>
Fri, 28 Apr 2017 00:03:10 +0000 (02:03 +0200)
committerGuido Draheim <guidod@gmx.de>
Fri, 28 Apr 2017 00:03:10 +0000 (02:03 +0200)
test/zziptests.py

index 8522e0c244a7b29f3ccdcec77f8050f8b9d62224..cac3bd8cbe3c074298c9e5bf3cf259cd40fcd208 100644 (file)
@@ -67,6 +67,7 @@ def shell(command, shell=True, calls=False, cwd=None, env=None, lang=None, retur
         for line in errors.split("\n"):
             if line:
                 logg.warning("ERR: %s", line)
+        raise subprocess.CalledProcessError(run.returncode, sh_command, output)
     else:
         for line in output.split("\n"):
             if line: