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

[minor] two tests broken when run with a --root directory that's a symlink

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 11, 2012, 21:55 UTC
Message-ID
<CACBZZX6Cu_4X=AywsDMebdoFYdEN1Gmp439aEAcehHBuMhziTw@mail.gmail.com>

These issues are minor, I noticed it because I test with /dev/shm/git as the --root, which on Debian is symlinked to /run/..

    $ rm -rf /tmp/{foo,bar}
    $ mkdir /tmp/target; ln -s /tmp/target /tmp/link
    $ prove ./t4035-diff-quiet.sh ./t9903-bash-prompt.sh :: --root=/tmp/target
    ./t4035-diff-quiet.sh ... ok
    ./t9903-bash-prompt.sh .. ok
    All tests successful.
    Files=2, Tests=64,  1 wallclock secs ( 0.04 usr  0.00 sys +  0.07
cusr  0.06 csys =  0.17 CPU)
    Result: PASS
    $ prove ./t4035-diff-quiet.sh ./t9903-bash-prompt.sh :: --root=/tmp/link
    ./t4035-diff-quiet.sh ... Dubious, test returned 1 (wstat 256, 0x100)
    Failed 3/20 subtests
    ./t9903-bash-prompt.sh .. Dubious, test returned 1 (wstat 256, 0x100)
    Failed 6/44 subtests
Everything else in the test suite passes with a --root that's a symlink.
Next: SZEDER Gábor
Message 1 of 4 in “[minor] two tests broken when run with a --root directory that's a symlink”
  1. Ævar Arnfjörð BjarmasonOct 11, 2012
  2. bash prompt: fix tests when run with a symlink --rootSZEDER Gábor, Oct 11, 2012
  3. Michael HaggertyOct 11, 2012
  4. Junio C HamanoOct 11, 2012

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.