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: Introduce t-expect-fsck-fail
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index 5fcb6f656b82497e2726638c7ae2523bc5245064..569ca145c4b531fa795aa61749aaed896cc6bf82 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-349,8
+349,12
@@
t-git-dir-check () {
esac
}
+t-expect-fsck-fail () {
+ expect_fsck_fail+=" $1"
+}
+
t-git-fsck () {
- git fsck --no-dangling --strict || ${expect_fsck_fail
-false}
+ git fsck --no-dangling --strict || ${expect_fsck_fail
:+true} false
}
t-fscks () {