summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-06-13 13:19:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-06-13 13:19:41 -0700
commit89d1b573d73e7c93f2190a08ed9430f42104c10b (patch)
tree91c7008d4cf4b220f437315534f60784bb4424c1 /t/test-lib.sh
parentMerge branch 'nd/corrupt-worktrees' (diff)
parenttests: add a special setup where prerequisites fail (diff)
downloadtgif-89d1b573d73e7c93f2190a08ed9430f42104c10b.tar.xz
Merge branch 'ab/fail-prereqs-in-test'
Developer support to emulate unsatisfied prerequisites in tests to ensure that the remainer of the tests still succeeds when tests with prerequisites are skipped. * ab/fail-prereqs-in-test: tests: add a special setup where prerequisites fail
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 599fd70e14..4b346467df 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1607,3 +1607,7 @@ test_lazy_prereq SHA1 '
test_lazy_prereq REBASE_P '
test -z "$GIT_TEST_SKIP_REBASE_P"
'
+
+test_lazy_prereq FAIL_PREREQS '
+ test -n "$GIT_TEST_FAIL_PREREQS"
+'