Print stderr if exitcode does not match
@@ -51,6 +51,9 @@ def test(hurl_file):
if result.returncode != expected:
print('>>> error in return code')
print(f'expected: {expected} actual:{result.returncode}')
+ stderr = decode_string(result.stderr).strip()
+ if stderr != '':
+ print(stderr)
sys.exit(1)
# stdout
