t / t0301-credential-cache.shon commit Merge branch 'tq/git-ssh-command' (09d60d7)
   1#!/bin/sh
   2
   3test_description='credential-cache tests'
   4. ./test-lib.sh
   5. "$TEST_DIRECTORY"/lib-credential.sh
   6
   7test -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
  13trap 'code=$?; git credential-cache exit; (exit $code); die' EXIT
  14
  15helper_test cache
  16helper_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.
  21git credential-cache exit
  22
  23test_done