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

Re: Test 5561 failed

From
JKJens Krüger <jens.krueger@frm2.tum.de>
Date
Apr 3, 2018, 13:29 UTC
Message-ID
<7769193d-f10d-9e3e-6c9d-c21a4a72485f@frm2.tum.de>
In-Reply-To
<20180403131447.GB18824@sigill.intra.peff.net>
Am 03.04.2018 um 15:14 schrieb Jeff King:
Show 21 quoted lines
> On Tue, Apr 03, 2018 at 01:43:37PM +0200, Jens Krüger wrote:
>
>> expecting success: GET refs/heads/master "404 Not Found" not ok 2 - 
>> direct refs/heads/master not found 
> That GET function is:
>
>    GET() {
>          curl --include "$HTTPD_URL/$SMART/repo.git/$1" >out 2>/dev/null &&
>          tr '\015' Q <out |
>          sed '
>                  s/Q$//
>                  1q
>          ' >act &&
>          echo "HTTP/1.1 $2" >exp &&
>          test_cmp exp act
>    }
>
> The tarball you sent shows "out" as empty, and "act" is missing. So
> "curl" produced no output, and we did not make it as far as the tr/sed
> pipe. Just a guess, but are you missing the "curl" command-line tool on
> your system? If so, "apt install curl" should fix the failure.

Yes, the missing curl program was the reason, but I didn't find any hint about the missed program in the log output. The output will be suppressed by the '2>/dev/null' in lines: 9 and 22 of the t5561-http-backend.sh script.

Nevertheless many thanks for helping.
Show 12 quoted lines
> As far as code changes in Git, perhaps (assuming my guess is right):
>
>    - drop the redirect of stderr here; the test suite already handles
>      hiding stderr from the user (without "-v"), and in "-v" mode you
>      probably would have gotten a useful error like "curl: not found"
>
>    - it's rare but possible to have libcurl installed (which is needed
>      for the server side, and what we key on for running the httpd tests)
>      but not the curl binary. This test probably should check for the
>      existence of the curl binary as a prerequisite.
>
> -Peff
Previous: Jeff KingNext: Jeff King
Message 3 of 6 in “Test 5561 failed”
  1. Jens KrügerApr 3, 2018
  2. Jeff KingApr 3, 2018
  3. Jens KrügerApr 3, 2018
  4. 0/2 t5561 fails without curl installedJeff King, Apr 3, 2018
  5. 1/2 t5561: drop curl stderr redirectsJeff King, Apr 3, 2018
  6. 2/2 t5561: skip tests if curl is not availableJeff King, Apr 3, 2018

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.