minor test-archive failure

Giorgos Keramidas keramida at ceid.upatras.gr
Sat Dec 12 20:35:46 CST 2009


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).



More information about the Mercurial-devel mailing list