minor test-archive failure

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Dec 15 20:38:09 CST 2009


On Sun, 13 Dec 2009 18:53:17 +0100, Patrick Mézard <pmezard at gmail.com> wrote:
>Le 13/12/09 03:35, Giorgos Keramidas a écrit :
>> A recent crew snapshot [5b9709f81986] fails `test-archive' because of
>> whitespace differences in unzip(1) output:
>>
>> % @@ -29,10 +29,10 @@
>> %  test-archive-TIP/baz/bletch
>> %  test-archive-TIP/foo
>> %  Archive:  archive.zip
>> % -    testing: test-archive-TIP/.hg_archival.txt   OK
>> % -    testing: test-archive-TIP/bar   OK
>> % -    testing: test-archive-TIP/baz/bletch   OK
>> % -    testing: test-archive-TIP/foo   OK
>> % +    testing: test-archive-TIP/.hg_archival.txt  OK
>> % +    testing: test-archive-TIP/bar       OK
>> % +    testing: test-archive-TIP/baz/bletch        OK
>> % +    testing: test-archive-TIP/foo       OK
>> %  No errors detected in compressed data of archive.zip.
>> %  test/.hg_archival.txt
>> %  test/bar
>>
>> Is it ok to filter `unzip -t' output and compress all whitespace,
>> e.g. using this filter?
>>
>> -   unzip -t archive.zip | sed "s/$QTIP/TIP/"
>> +   unzip -t archive.zip | expand | sed -e "s/$QTIP/TIP/" -e 's/  */ /g'
>>
>> This is admittedly a slightly ugly hack, but it will fix the tests with
>> unzip-6.0 (the version in FreeBSD ports).
>
> I cannot reproduce it with macports unzip which reports:
>
>     UnZip 6.00 of 20 April 2009, by Info-ZIP.
>
> Do you know how both differ ?

Hi Patrick,

I'm sorry for taking so long to reply, the reply wasn't Cc:ed to me so
it had to wait until I checked mercurial-devel email again.

I don't know if there any differences between the two unzip versions.
It _may_ be a terminal issue, e.g. my default xterm width is 120 and
unzip may be changing its output field width when that happens.



More information about the Mercurial-devel mailing list