chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f0259
)
test suite: t-git-fsck: Introduce fsckerrs variable
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Jan 2018 23:11:38 +0000
(23:11 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 6 Jan 2018 00:37:12 +0000
(
00:37
+0000)
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib
patch
|
blob
|
history
diff --git
a/tests/lib
b/tests/lib
index 3c04155a2ddbe398ba480030186b1ab8add23186..fcff468b0a4b29f0d89e3a11d8959d182ed2f8ef 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-359,9
+359,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
$fsck
errs
ps="${PIPESTATUS[*]}"
set -e
@@
-375,7
+377,7
@@
t-git-fsck () {
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