Skip to content

Commit 0f05f38

Browse files
committed
Always print output (not just when test fails)
1 parent dbb2379 commit 0f05f38

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_discovery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def test_runtest(test_dir, tmp_path, make_cmd, initial_cwd):
6464
start = time.time()
6565
result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=600)
6666
elapsed = time.time() - start
67+
print(f"Output: {result.stdout}")
6768
if result.returncode != 0:
68-
print(f"Output: {result.stdout}\nStderr: {result.stderr}")
69+
print(f"Stderr: {result.stderr}")
6970
assert result.returncode == 0, f"Failed after {elapsed:.3f}s in {test_dir}"

0 commit comments

Comments
 (0)