Code

credentials: add "cache" helper
[git.git] / t / t0301-credential-cache.sh
1 #!/bin/sh
3 test_description='credential-cache tests'
4 . ./test-lib.sh
5 . "$TEST_DIRECTORY"/lib-credential.sh
7 # don't leave a stale daemon running
8 trap 'code=$?; git credential-cache exit; (exit $code); die' EXIT
10 helper_test cache
11 helper_test_timeout cache --timeout=1
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
18 test_done