diff --git a/scripts/release_control/rehearsal_source_test.py b/scripts/release_control/rehearsal_source_test.py index b69b4e6dde..f297703760 100644 --- a/scripts/release_control/rehearsal_source_test.py +++ b/scripts/release_control/rehearsal_source_test.py @@ -37,7 +37,9 @@ class RehearsalSourceTest(unittest.TestCase): self.git("config", "user.email", "fixture@example.invalid") self.git("config", "user.name", "Fixture") self.git("config", "core.hooksPath", "/dev/null") - for name in ("scripts/release_control/control_plane.py", + # Match the real checkout's generated-file policy, including Python's + # import cache, while still detecting any uncommitted source change. + for name in (".gitignore", "scripts/release_control/control_plane.py", "scripts/release_control/repo_file_io.py", "scripts/release_control/resolve_release_promotion.py", "docs/release-control/control_plane.json"):