From 7dccfc8e11ab659657553f292c7ea5afae371a05 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 29 Sep 2021 17:44:08 +0200 Subject: svg-flatten/tests: Only print output on error --- svg-flatten/src/test/svg_tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/svg-flatten/src/test/svg_tests.py b/svg-flatten/src/test/svg_tests.py index 0fc8dd6..e417c19 100644 --- a/svg-flatten/src/test/svg_tests.py +++ b/svg-flatten/src/test/svg_tests.py @@ -38,12 +38,11 @@ def run_svg_flatten(input_file, output_file, *args, **kwargs): try: proc = subprocess.run(args, capture_output=True, check=True) except: - raise - finally: print('Subprocess stdout:') print(proc.stdout.decode()) print('Subprocess stderr:') print(proc.stderr.decode()) + raise def run_cargo_cmd(cmd, args, **kwargs): if cmd.upper() in os.environ: -- cgit