Address code review: compute stderr_text only when chunks are present

This commit is contained in:
copilot-swe-agent[bot]
2026-07-18 16:30:38 +00:00
committed by GitHub
parent 35c4de412f
commit 22aa251d64
2 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -108,8 +108,10 @@ class ManualBackupWorkflowTests(unittest.TestCase):
the FAILED log entry so the UI shows what went wrong (e.g. 'bash: not
found') rather than only the raw exit code."""
source = SERVER_FILE.read_text()
self.assertIn("stderr_chunks", source)
self.assertIn("stderr_text", source)
self.assertIn('if stderr_text else ""', source)
# stderr detail is conditionally appended only when non-empty
self.assertIn('detail = f" — stderr: {stderr_text}"', source)
def test_exit_code_127_subprocess_stderr_drain(self):
"""Behavioral regression: a subprocess that exits 127 must have its