Kill the mutants of the judged shells, the named process's lookup and a tool named as a third word
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-19 10:11:51 +01:00
parent 2471db9108
commit d06eea3149
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -181,8 +181,10 @@ class ChildShells(unittest.TestCase):
# Like the shell of a loop that only names the tool, as the one that held a worker on 2026-11-18 did.
naming = self.started("source /dev/null && eval 'until false; do sleep 60; done # chunk-pr merge' < /dev/null && pwd")
busy = self.started(f"{tool} merge; true")
# The tool's name as the third word, after a program and a script read from stdin.
third = self.started("python3 - chunk-pr <<< 'import time; time.sleep(60)'; true")
self.assertEqual(self.shell_of(naming).command, "until false; do sleep 60; done # chunk-pr merge")
self.assertEqual((self.shell_of(naming).runs_busy_tool, self.shell_of(busy).runs_busy_tool), (False, True))
self.assertEqual([self.shell_of(each).runs_busy_tool for each in (naming, third, busy)], [False, False, True])
self.assertLess(abs(self.shell_of(naming).started - time.time()), 5)
def test_a_shell_below_which_a_process_holds_a_heavy_slot_file_holds_a_slot_and_runs_no_busy_tool(self):