t5004: ignore pax global header file
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 9 May 2013 13:10:48 +0000 (15:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 May 2013 19:18:57 +0000 (12:18 -0700)
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>
t/t5004-archive-corner-cases.sh
index bfdb56a0694db0c6ed07aaa568c648909ac62660..ddf6e35069b5e073b8b00961813b923a15b51b71 100755 (executable)
@@ -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
 }