]>
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 | ||
7 | # don't leave a stale daemon running | |
8 | trap 'code=$?; git credential-cache exit; (exit $code); die' EXIT | |
9 | ||
10 | helper_test cache | |
11 | helper_test_timeout cache --timeout=1 | |
12 | ||
13 | # we can't rely on our "trap" above working after test_done, | |
14 | # as test_done will delete the trash directory containing | |
15 | # our socket, leaving us with no way to access the daemon. | |
16 | git credential-cache exit | |
17 | ||
18 | test_done |