summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-05 15:37:49 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-05 15:37:53 +0000
commit6cbd45af603bc976c8334f839cebefbad2b3a622 (patch)
treefa4e9fd6759a13f6cbb38d82090dad09d57c95e9 /tests/lib
parente3d689abb4446aa168d150d2832fe9fd76933dcc (diff)
test suite: Introduce t-expect-fsck-fail
No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index fb9ee38..569ca14 100644
--- a/tests/lib
+++ b/tests/lib
@@ -349,6 +349,10 @@ t-git-dir-check () {
esac
}
+t-expect-fsck-fail () {
+ expect_fsck_fail+=" $1"
+}
+
t-git-fsck () {
git fsck --no-dangling --strict || ${expect_fsck_fail:+true} false
}