forge
Explore
Log in

Don't you dare go Hollow

ec-av1: ignore leaked GIT_DIR when the test runner locates the repo

Browse files at this commit

df78a6b0a1d9eef001847e6c88f5f95603e5c322Ahmet Kaan GümüşParent: 44a0cfb
git bisect run exports GIT_DIR. The runner's rev-parse then resolved the test package dir and exited 127.
.cargo/config.tomlmodified+4 -2
@@ -3,8 +3,10 @@
3 # allocation gets killed inside its own cgroup instead of OOM-killing the3 # allocation gets killed inside its own cgroup instead of OOM-killing the
4 # machine. Located via `git rev-parse --show-toplevel` from the invoker's cwd4 # machine. Located via `git rev-parse --show-toplevel` from the invoker's cwd
5 # (cargo does not resolve runner paths relative to this file, and an absolute5 # (cargo does not resolve runner paths relative to this file, and an absolute
6-# path would break other worktree checkouts of this repo).6+# path would break other worktree checkouts of this repo). `git bisect run`
7-runner = ["bash", "-c", "root=$(git rev-parse --show-toplevel) && exec \"$root/scripts/memguard-runner.sh\" \"$@\"", "--"]7+# exports GIT_DIR, which would make that rev-parse resolve the test package
8+# dir instead of the repo. Strip the leaked git vars first.
9+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\" \"$@\"", "--"]
8 10
9 [env]11 [env]
10 # The AV1 rate-target tests keep several frames' worth of encoder state on the12 # The AV1 rate-target tests keep several frames' worth of encoder state on the