Keep locate reference checks binary-safe after collector tests

Search the same forbidden ASCII references as bytes so generated Python bytecode does not abort the aggregate test run.

(cherry picked from commit 8f3642b3662ea2409e17c80ee18a231bac5c8d7c)
This commit is contained in:
Ryan Hughes committed 2026-09-07 20:57:03 -04:00
1 parent 2cdcafa5b5
commit 4064436eea
1 file changed
+2 -2
+2 -2
View File
@@ -37,8 +37,8 @@ check(not (root / "install/config/locate.sh").exists() and not (root / "migratio
for directory in ("bin", "install", "migrations"):
for path in (root / directory).rglob("*"):
if path.is_file():
content = path.read_text()
if "OMARCHY_UPDATEDB_CONF_PATH" in content or "config/locate.sh" in content:
content = path.read_bytes()
if b"OMARCHY_UPDATEDB_CONF_PATH" in content or b"config/locate.sh" in content:
raise SystemExit("not ok - retired locate configuration path remains in " + str(path))
check(True, "runtime and installation no longer reference the configuration rewrite")