test: move bats scratch dirs to repo-local .test-scratch/ (per global no-/tmp/ rule)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-29 12:03:57 -04:00
parent 76a3cb798a
commit f6c30f2fe8
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -47,7 +47,8 @@ setup() {
@test "fails cleanly when upstream/master ref is missing" {
# Run in a temp git repo with no upstream remote.
tmp=$(mktemp -d)
mkdir -p "$REPO_ROOT/.test-scratch"
tmp=$(mktemp -d -p "$REPO_ROOT/.test-scratch")
cd "$tmp"
git init -q
git commit --allow-empty -m "init" -q