chiark / gitweb /
test suite: t-git-fsck: Introduce fsckerrs variable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Jan 2018 23:11:38 +0000 (23:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jan 2018 17:24:53 +0000 (17:24 +0000)
No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index fa8d6bb..277ad5e 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -360,9 +360,11 @@ t-expect-fsck-fail () {
 }
 
 t-git-fsck () {
+       local fsckerrs=dgit-test-fsck.errs
+
        set +e
        LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \
-               | tee dgit-test-fsck.errs
+               | tee $fsckerrs
        ps="${PIPESTATUS[*]}"
        set -e
 
@@ -376,7 +378,7 @@ t-git-fsck () {
        pats+=(-e 'notice: No default references')
 
        set +e
-       grep -v "${pats[@]}" dgit-test-fsck.errs
+       grep -v "${pats[@]}" $fsckerrs
        rc=$?
        set -e
        case $rc in