]>
Commit | Line | Data |
---|---|---|
e2770979 JK |
1 | #!/bin/sh |
2 | ||
3 | test_description='credential-cache tests' | |
4 | . ./test-lib.sh | |
5 | . "$TEST_DIRECTORY"/lib-credential.sh | |
6 | ||
6320358e JS |
7 | test -z "$NO_UNIX_SOCKETS" || { |
8 | skip_all='skipping credential-cache tests, unix sockets not available' | |
9 | test_done | |
10 | } | |
11 | ||
e2770979 JK |
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 |