From 4064436eeaa6e1ea10d50d33dd0bca84496ad05a Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 7 Sep 2026 20:52:28 -0400 Subject: [PATCH] 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) --- test/shell.d/locate-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/shell.d/locate-test.sh b/test/shell.d/locate-test.sh index 58eacbbd..7bf1a359 100644 --- a/test/shell.d/locate-test.sh +++ b/test/shell.d/locate-test.sh @@ -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")