svg-flatten/tests: Only print output on error
This commit is contained in:
parent
2380dcb222
commit
7dccfc8e11
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue