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

[PATCH 1/2] t5004: ignore pax global header file

From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
May 9, 2013, 13:10 UTC
Message-ID
<518BA058.6050300@lsrfire.ath.cx>

Versions of tar that don't know pax headers -- like the ones in NetBSD 6 and OpenBSD 5.2 -- extract them as regular files. Explicitly ignore the file created for our global header when checking the list of extracted files, as this is normal and harmless fall-back behaviour. This fixes test 3 of t5004 on these platforms.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
Fixes a failure of a test added after v1.8.2.
 t/t5004-archive-corner-cases.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t5004-archive-corner-cases.sh b/t/t5004-archive-corner-cases.sh
index bfdb56a..ddf6e35 100755
--- a/t/t5004-archive-corner-cases.sh
+++ b/t/t5004-archive-corner-cases.sh
@@ -23,7 +23,7 @@ check_dir() {
 			echo "$dir/$i"
 		done
 	} | sort >expect &&
-	find "$dir" -print | sort >actual &&
+	find "$dir" ! -name pax_global_header -print | sort >actual &&
 	test_cmp expect actual
 }
 
-- 
1.8.2.1
Next: René Scharfe
Message 1 of 6 in “t5004: ignore pax global header file”
  1. 1/2 t5004: ignore pax global header fileRené Scharfe, May 9, 2013
  2. 2/2 t5004: avoid using tar for checking emptiness of archiveRené Scharfe, May 9, 2013
  3. 3/2 t5004: resurrect original empty tar archive testRené Scharfe, May 9, 2013
  4. Jonathan NiederMay 11, 2013
  5. Eric SunshineMay 9, 2013
  6. René ScharfeMay 9, 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.