ec-av1: ignore leaked GIT_DIR when the test runner locates the repo
Browse files at this commitdf78a6b0a1d9eef001847e6c88f5f95603e5c322Parent: 44a0cfb1 changed file +4 -2
- .cargo/config.toml +4 -2
.cargo/config.tomlmodified+4 -2
| @@ -3,8 +3,10 @@ | |||
| 3 | # allocation gets killed inside its own cgroup instead of OOM-killing the | 3 | # 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 cwd | 4 | # 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 absolute | 5 | # (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 the | 12 | # The AV1 rate-target tests keep several frames' worth of encoder state on the |