From 52fcd4265d07eca3dfc5f2ada130d6e1cef295a2 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Fri, 28 Apr 2017 02:03:10 +0200 Subject: [PATCH] report a run-error as an exception --- test/zziptests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/zziptests.py b/test/zziptests.py index 8522e0c..cac3bd8 100644 --- a/test/zziptests.py +++ b/test/zziptests.py @@ -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: -- 2.40.0