tests: add a special setup where prerequisites fail
[gitweb.git] / t / test-lib.sh
index 908ddb9c46630d8d9678f610cfde7617bc38514c..6fabafebb31993506d5d026f36361e8877fb6eb0 100644 (file)
@@ -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"
+'