Tell an epic chunk's worker how its repo ships a change, and bound the interrupt test's helper shell
CI / tests (pull_request) Failing after 5m1s

This commit is contained in:
2026-11-19 02:17:33 +01:00
parent 3d4de11a95
commit b845d80ac7
5 changed files with 30 additions and 6 deletions
+2 -1
View File
@@ -220,8 +220,9 @@ class ToolProcess(unittest.TestCase):
def test_an_interrupt_reaches_the_tool_before_the_run_kills_it(self):
# A container's CLI, such as docker compose, stops its container on the SIGINT it is passed, and can't once killed.
# The loop ends by itself after about 40 seconds: under mutmut, the interrupt doesn't reach this shell, and an endless one hung the run.
with tempfile.TemporaryDirectory() as folder:
self.interrupted(folder, "trap 'echo > stopped; exit 130' INT; echo $$ > started; while :; do sleep 0.1; done;")
self.interrupted(folder, "trap 'echo > stopped; exit 130' INT; echo $$ > started; n=0; while [ $n -lt 400 ]; do sleep 0.1; n=$((n+1)); done;")
self.assertTrue(pathlib.Path(folder, "stopped").is_file())
def test_an_interrupted_tool_that_ignores_sigint_is_killed_after_the_grace_period(self):