chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: lib: t-git-fsck: put dgit-test-fsck.errs in git dir
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index fa8d6bb58e0847a57bd9bf2bebddb7332fcdd370..fcc2a69766e73b34a32b8ba0cdd1112893c1775f 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-360,9
+360,11
@@
t-expect-fsck-fail () {
}
t-git-fsck () {
}
t-git-fsck () {
+ local fsckerrs=$(git rev-parse --git-dir)/dgit-test-fsck.errs
+
set +e
LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \
set +e
LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \
- | tee
dgit-test-fsck.
errs
+ | tee
$fsck
errs
ps="${PIPESTATUS[*]}"
set -e
ps="${PIPESTATUS[*]}"
set -e
@@
-376,7
+378,7
@@
t-git-fsck () {
pats+=(-e 'notice: No default references')
set +e
pats+=(-e 'notice: No default references')
set +e
- grep -v "${pats[@]}"
dgit-test-fsck.
errs
+ grep -v "${pats[@]}"
$fsck
errs
rc=$?
set -e
case $rc in
rc=$?
set -e
case $rc in