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

Re: [PATCH 1/1] tests: fix gzip with exported GZIP variable in environment

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 3, 2013, 18:21 UTC
Message-ID
<xmqqy541okwg.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20131203131812.GC26667@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 15 quoted lines
> There are a few options I see:
>
>   1. Drop $GZIP variable, and hard-code the prerequisite check to
>      "gzip", which is what is being tested.
>
>   2. Keep $GZIP (but rename it to $GIT_GZIP), and explicitly set up
>      tar.tgz.command as "$GIT_GZIP -cn".
>
>   3. Teach the Makefile a knob to set the value for "gzip" at compile
>      time, and use that for the baked-in config (and propagate it to the
>      test to check the prerequisite).
>
> I think I'd be in favor of (1). It's the simplest, and we have not seen
> any reports of people who do not actually have gzip called "gzip". Users
> can still override it via config if they really want to.
I am OK with (1).

A related tangent is that we may have to worry about is how/if a random setting coming from GZIP in the environment (e.g. "GZIP=-1v") would interfere with the test. It may be the simplest to unset $GZIP at the beginning of these tests, regardless of which of the above three is taken.

Previous: Jeff KingNext: Jeff King
Message 5 of 7 in “tests: fix gzip with exported GZIP variable in environment”
  1. 1/1 tests: fix gzip with exported GZIP variable in environmentChristian Hesse, Dec 3, 2013
  2. Eric SunshineDec 3, 2013
  3. Jeff KingDec 3, 2013
  4. t5000: simplify gzip prerequisite checksJeff King, Dec 3, 2013
  5. Junio C HamanoDec 3, 2013
  6. Jeff KingDec 4, 2013
  7. Junio C HamanoDec 4, 2013

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.