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

t5562: gzip -k is not portable

From
Torsten Bögershausen <tboegi@web.de>
Date
Jun 19, 2018, 17:25 UTC
Message-ID
<5ee7a65d-63e1-aa6a-c3c1-663c092d0efe@web.de>
Hej Max,

t5562 fails here under MacOS: "gzip -k"  is not portable.

The following works (there may be better solutions, I didn't dig into the test code)

diff --git a/t/t5562-http-backend-content-length.sh 
b/t/t5562-http-backend-content-length.sh
index 8040d80e04..7befe3885c 100755
--- a/t/t5562-http-backend-content-length.sh
+++ b/t/t5562-http-backend-content-length.sh
@@ -61,9 +61,13 @@ test_expect_success 'setup' '
  '

  test_expect_success GZIP 'setup, compression related' '
-       gzip -k fetch_body &&
+       cp fetch_body f &&
+       gzip fetch_body &&
+       mv f fetch_body &&
         test_copy_bytes 10 <fetch_body.gz >fetch_body.gz.trunc &&
-       gzip -k push_body &&
+       cp push_body f &&
+       gzip push_body &&
+       mv f push_body &&
         test_copy_bytes 10 <push_body.gz >push_body.gz.trunc
Next: Junio C Hamano
Message 1 of 10 in “t5562: gzip -k is not portable”
  1. Torsten BögershausenJun 19, 2018
  2. Junio C HamanoJun 19, 2018
  3. Eric SunshineJun 19, 2018
  4. Torsten BögershausenJun 19, 2018
  5. Jeff KingJun 19, 2018
  6. Torsten BögershausenJun 20, 2018
  7. Jeff KingJun 20, 2018
  8. Torsten BögershausenJun 20, 2018
  9. Rodrigo CamposJun 19, 2018
  10. Rodrigo CamposJun 19, 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.