Skip to content

Commit 1d828b8

Browse files
committed
debug stderr
1 parent 2a7cacf commit 1d828b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_patch_git_preparation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ def test_patch_git_prep():
2020
tmp_path = Path(tmp_dir)
2121
commit = "c8d343a3ff7f6be17ff1d0dd7f89d06845c0a18b"
2222
subprocess.run([str(script_path), commit], cwd=tmp_path, check=True)
23+
r = subprocess.run([str(script_path), commit], cwd=tmp_path,
24+
capture_output=True, text=True, check=False)
25+
if r.returncode:
26+
print(f"Command errored:\n{r.stderr}")
27+
r.check_returncode()
28+
2329
generated_file = tmp_path / "patch-git-generated-log.txt"
2430
actual_content = generated_file.read_text()
2531
expected_content = expected_file.read_text()

0 commit comments

Comments
 (0)