From df78a6b0a1d9eef001847e6c88f5f95603e5c322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 25 Sep 2026 06:40:53 +0300 Subject: [PATCH] ec-av1: ignore leaked GIT_DIR when the test runner locates the repo git bisect run exports GIT_DIR. The runner's rev-parse then resolved the test package dir and exited 127. --- .cargo/config.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index ab0d82b2..52a50aad 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,8 +3,10 @@ # allocation gets killed inside its own cgroup instead of OOM-killing the # machine. Located via `git rev-parse --show-toplevel` from the invoker's cwd # (cargo does not resolve runner paths relative to this file, and an absolute -# path would break other worktree checkouts of this repo). -runner = ["bash", "-c", "root=$(git rev-parse --show-toplevel) && exec \"$root/scripts/memguard-runner.sh\" \"$@\"", "--"] +# path would break other worktree checkouts of this repo). `git bisect run` +# exports GIT_DIR, which would make that rev-parse resolve the test package +# dir instead of the repo. Strip the leaked git vars first. +runner = ["bash", "-c", "root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_INDEX_FILE git rev-parse --show-toplevel) && exec \"$root/scripts/memguard-runner.sh\" \"$@\"", "--"] [env] # The AV1 rate-target tests keep several frames' worth of encoder state on the