From e862c5145e09313da2b884883b1b87ede13da13f Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 26 Jul 2026 22:27:11 -0700 Subject: [PATCH] Test root docs against current checkout --- docs/test_codeblocks_manifest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/test_codeblocks_manifest.py b/docs/test_codeblocks_manifest.py index 9c7a4031..1e27f120 100644 --- a/docs/test_codeblocks_manifest.py +++ b/docs/test_codeblocks_manifest.py @@ -425,9 +425,14 @@ def run_snippets(snippet_ids: tuple[str, ...]) -> None: ) system_lib_dir = Path(snippet_env["ABXPKG_LIB_DIR"]) if record["environment"] == "root": + current_archivebox = Path(sys.executable).with_name("archivebox") + assert current_archivebox.is_file() and os.access(current_archivebox, os.X_OK) + local_bin_dir = system_home / ".local" / "bin" + local_bin_dir.mkdir(parents=True, exist_ok=True) + (local_bin_dir / "archivebox").symlink_to(current_archivebox) snippet_env["PATH"] = os.pathsep.join( [ - str(system_home / ".local" / "bin"), + str(local_bin_dir), str(system_home / ".cargo" / "bin"), "/usr/local/sbin", "/usr/local/bin",