diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-01-05 23:11:38 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-01-07 17:24:53 +0000 |
commit | 625519607d0e5552d0e0372fc833e9def2f219c5 (patch) | |
tree | af63440453a788155c96fa53572fa5cf3fa09ad1 /tests | |
parent | 89b8afb34a970cb6f31f5725f38c2f51203c6a29 (diff) |
test suite: t-git-fsck: Introduce fsckerrs variable
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |