Re: [PATCH] test-lib: stricter unzip(1) check
- From
- Eric Wong <e@80x24.org>
- Date
- Jul 18, 2016, 20:03 UTC
- Message-ID
- <20160718200351.GA61232@plume>
- In-Reply-To
- <xmqqshv6ivfk.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> +test_lazy_prereq UNZIP_AUTOTEXT ' > + ( > + mkdir unzip-autotext && > + cd unzip-autotext > + "$GIT_UNZIP" -a "$TEST_DIRECTORY"/t5003/infozip-text.zip && > + test -f text > + )
/usr/bin/unzip actually takes -a on FreeBSD, just not in the same way the Info-ZIP version does, so I suspect "test -f" here is not enough.
I would test this, but I can't apply it:
> diff --git a/t/t5003/infozip-text.zip b/t/t5003/infozip-text.zip > new file mode 100644 > index 0000000..a019acb > Binary files /dev/null and b/t/t5003/infozip-text.zip differ