git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2/GSoC 4/4] t0301: test credential-cache support of XDG_RUNTIME_DIR

From
Jeff King <peff@peff.net>
Date
Mar 18, 2016, 05:01 UTC
Message-ID
<20160318050124.GB22327@sigill.intra.peff.net>
In-Reply-To
<CAKqreuy0jU7WOi8_iGXR2hzYJE0kG8855hQuaeaW9OTKm3yF_Q@mail.gmail.com>
On Fri, Mar 18, 2016 at 12:38:16PM +0800, 惠轶群 wrote:
Show 12 quoted lines
> >> +test_expect_success 'when $XDG_RUNTIME_DIR is set, `$XDG_RUNTIME_DIR/git` are used' '
> >> +     test_path_is_missing "/tmp/git-$(id -u)/git/credential-cache.sock" &&
> >> +     test -S "$HOME/xdg_runtime/git/credential-cache.sock"
> >> +'
> >
> > This test fails for me, probably because XDG_RUNTIME_DIR is not
> > exported.
> >
> > -Peff
> 
> Could you please give a try to the patch set v2, test of which is
> definitely passed on my computer.

Yes, that was what I tried earlier (and I just re-tested to make sure). It still fails. I suspect it has to do with whether XDG_RUNTIME_DIR is set in our environments (outside of the test suite). If I run:

  XDG_RUNTIME_DIR=/tmp/foo ./t0301-credential-cache.sh
it passes.
-Peff
Previous: 惠轶群Next: 惠轶群
Message 8 of 9 in “path.c: implement strbuf_mkpath()”
  1. 1/4 path.c: implement strbuf_mkpath()Hui Yiqun, Mar 17, 2016
  2. 2/4 path.c: implement xdg_runtime_dir()Hui Yiqun, Mar 17, 2016
  3. Jeff KingMar 17, 2016
  4. 3/4 git-credential-cache: put socket to xdg-compatible pathHui Yiqun, Mar 17, 2016
  5. 4/4 t0301: test credential-cache support of XDG_RUNTIME_DIRHui Yiqun, Mar 17, 2016
  6. Jeff KingMar 17, 2016
  7. 惠轶群Mar 18, 2016
  8. Jeff KingMar 18, 2016
  9. 惠轶群Mar 18, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.