We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c4dadd commit 79284dfCopy full SHA for 79284df
1 file changed
t/run_yaml_test.py
@@ -82,13 +82,21 @@ def run_case(case):
82
command = ['perl', '-Mblib', 'ack', '--noenv']
83
command += args.split()
84
logger.info(' Command: %s' % ' '.join(command))
85
- result = subprocess.run(
86
- command,
87
- input=case.get('stdin', None),
88
- capture_output=True,
89
- text=True,
90
- check=(not case['exitcode']),
91
- )
+
+ try:
+ result = subprocess.run(
+ command,
+ input=case.get('stdin', None),
+ capture_output=True,
+ text=True,
92
+ check=(not case['exitcode']),
93
+ )
94
+ except subprocess.CalledProcessError as e:
95
+ print('STDOUT from', command)
96
+ print(repr(e.stdout))
97
+ print('STDERR from', command)
98
+ print(repr(e.stderr))
99
+ raise
100
101
if case['exitcode']:
102
assert result.returncode == case['exitcode']
0 commit comments