Sfoglia il codice sorgente

Fix printing failed test output

default_compile_flags
vector-of-bool 5 anni fa
parent
commit
c1ed85eda7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      test.py

+ 1
- 1
test.py Vedi 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…
Annulla
Salva