Re: [GSoC][PATCH v4 4/4] credential-cache: add tests for XDG functionality

2017-03-16 Thread Devin Lehmacher
> > > +test_expect_success 'credential-cache --socket option overrides default > > > location' ' > > > + test_when_finished "rm -rf \"$HOME\"/dir/" && > > > + check approve "cache --socket \"$HOME/dir/socket\"" <<-\EOF && > > > + protocol=https > > > + host=example.com > > > + username=store-user

Re: [GSoC][PATCH v4 4/4] credential-cache: add tests for XDG functionality

2017-03-16 Thread Jeff King
On Thu, Mar 16, 2017 at 09:29:58AM -0700, Junio C Hamano wrote: > Devin Lehmacher writes: > > > @@ -20,4 +21,67 @@ helper_test_timeout cache --timeout=1 > > # our socket, leaving us with no way to access the daemon. > > git credential-cache exit > > > > +# we need to use rm -rf here since so

Re: [GSoC][PATCH v4 4/4] credential-cache: add tests for XDG functionality

2017-03-16 Thread Junio C Hamano
Devin Lehmacher writes: > @@ -20,4 +21,67 @@ helper_test_timeout cache --timeout=1 > # our socket, leaving us with no way to access the daemon. > git credential-cache exit > > +# we need to use rm -rf here since sometimes the daemon hasn't finished > +# cleaning up after itself and rmdir fail

[GSoC][PATCH v4 4/4] credential-cache: add tests for XDG functionality

2017-03-15 Thread Devin Lehmacher
Signed-off-by: Devin Lehmacher --- t/t0301-credential-cache.sh | 64 + 1 file changed, 64 insertions(+) diff --git a/t/t0301-credential-cache.sh b/t/t0301-credential-cache.sh index 82c841121..664c6dda1 100755 --- a/t/t0301-credential-cache.sh +++ b/t/t