From 79751305b69e2b8c385430dc60c73ae5e6d1abf9 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 28 Oct 2026 11:30:09 +0100 Subject: [PATCH] fix: keep ctime out of the bit flip test A real flip leaves the ctime alone. The test rewrites the file, and git sees the new ctime whenever the rewrite lands a second after the commit, so slow runs reported the flip as a working change. Reproduced with a 1.2 s delay before the flip. --- tests/test_autorun.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_autorun.py b/tests/test_autorun.py index 702fac6bc..fbdbf4912 100644 --- a/tests/test_autorun.py +++ b/tests/test_autorun.py @@ -819,6 +819,10 @@ class BiosIntegrity(Scratch): self.repo = self.tmp / "repo" self.repo.mkdir() run_git(self.repo, "init", "--quiet", "-b", "main") + # A flip on disk leaves the ctime alone, the rewrite that stands for + # it here does not: git sees it whenever it lands a second after + # the commit, so slow runs read the flip as a working change. + run_git(self.repo, "config", "core.trustctime", "false") files = { "bios/Aristocrat/aristmk6.zip": bytes(range(256)) * 4, "bios/Sony/scph5501.bin": b"\x55" * 512,