]> git.ipfire.org Git - thirdparty/git.git/blob - t/t0301-credential-cache.sh
The seventh batch of topics graduated to 'master'
[thirdparty/git.git] / t / t0301-credential-cache.sh
1 #!/bin/sh
2
3 test_description='credential-cache tests'
4 . ./test-lib.sh
5 . "$TEST_DIRECTORY"/lib-credential.sh
6
7 test -z "$NO_UNIX_SOCKETS" || {
8 skip_all='skipping credential-cache tests, unix sockets not available'
9 test_done
10 }
11
12 # don't leave a stale daemon running
13 trap 'code=$?; git credential-cache exit; (exit $code); die' EXIT
14
15 helper_test cache
16 helper_test_timeout cache --timeout=1
17
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
22
23 test_done