aboutsummaryrefslogtreecommitdiffstats
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-06-13 13:19:41 -0700
committerJunio C Hamano <gitster@pobox.com>2019-06-13 13:19:41 -0700
commit89d1b573d73e7c93f2190a08ed9430f42104c10b (patch)
tree91c7008d4cf4b220f437315534f60784bb4424c1 /t/test-lib.sh
parent000bce0ee4d0ef719b84fb643c45fe68fa4bb773 (diff)
parentdfe1a17df9b1bd9ab95095e248b8f376637ac395 (diff)
downloadgit-89d1b573d73e7c93f2190a08ed9430f42104c10b.tar.gz
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"
+'