t5004: ignore pax global header file
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
May 9, 2013 at 15:10 UTC
abdb9b2e4fd7876ab7138119c4aedca70bc0d250
1 file changed
+1
-1
t/t5004-archive-corner-cases.sh
+1
-1
@@ -23,7 +23,7 @@ check_dir() {
23
echo "$dir/$i"
24
done
25
} | sort >expect &&
26
- find "$dir" -print | sort >actual &&
26
+ find "$dir" ! -name pax_global_header -print | sort >actual &&
27
test_cmp expect actual
28
}
29