Merge git://git.bogomips.org/git-svn
[git/mjg.git] / t / t0301-credential-cache.sh
blob82c8411210831fbfbd3151b8e19dba9ee004fab0
1 #!/bin/sh
3 test_description='credential-cache tests'
4 . ./test-lib.sh
5 . "$TEST_DIRECTORY"/lib-credential.sh
7 test -z "$NO_UNIX_SOCKETS" || {
8 skip_all='skipping credential-cache tests, unix sockets not available'
9 test_done
12 # don't leave a stale daemon running
13 trap 'code=$?; git credential-cache exit; (exit $code); die' EXIT
15 helper_test cache
16 helper_test_timeout cache --timeout=1
18 # we can't rely on our "trap" above working after test_done,
19 # as test_done will delete the trash directory containing
20 # our socket, leaving us with no way to access the daemon.
21 git credential-cache exit
23 test_done