Test that a bugs bench fails where Gremlins fails
CI / tests (pull_request) Successful in 3m44s

This commit is contained in:
2026-11-23 18:25:09 +01:00
parent 2b26cdc530
commit 4d2c896f21
+3
View File
@@ -260,6 +260,9 @@ class BenchTest(unittest.TestCase):
cwd, *argv = json.loads((self.root / "gremlins.log").read_text())
self.assertEqual((cwd, argv[:2], argv[-2:]), (str(folder / "trees/base"), ["gremlins", "unleash"], ["--workers", str(main.CPUS_PER_SLOT)]))
def test_gremlins_failing_fails_the_bench(self):
self.assertIsInstance(self.bench(**{"--prefix": "false"}), Failure)
def test_each_side_gets_its_own_tree_with_the_bug_committed_once_and_no_trace_of_the_checkout(self):
folder = pathlib.Path(self.bench()[-1].removeprefix(main.KEPT))
for side, code in (("base", BASE_CODE), ("head", HEAD_CODE)):