test-lib: allow negation of prerequisites
[gitweb.git] / t / t0301-credential-cache.sh
index 3a65f99531cc70a54d37ed9a58fa42abb680331f..82c8411210831fbfbd3151b8e19dba9ee004fab0 100755 (executable)
@@ -4,6 +4,11 @@ test_description='credential-cache tests'
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-credential.sh
 
+test -z "$NO_UNIX_SOCKETS" || {
+       skip_all='skipping credential-cache tests, unix sockets not available'
+       test_done
+}
+
 # don't leave a stale daemon running
 trap 'code=$?; git credential-cache exit; (exit $code); die' EXIT