Browse Source

Fix printing failed test output

default_compile_flags
vector-of-bool 5 years ago
parent
commit
c1ed85eda7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test.py

+ 1
- 1
test.py View File

@@ -32,7 +32,7 @@ def run_test_dir(dir: Path, opts: TestOptions) -> bool:
stderr=subprocess.STDOUT,
)
if res.returncode != 0:
print(f'Test failed with exit code [{res.returncode}]:\n{res.stdout}')
print(f'Test failed with exit code [{res.returncode}]:\n{res.stdout.decode()}')
return res.returncode == 0



Loading…
Cancel
Save