Mercurial > public > mercurial-scm > hg-stable
diff tests/test-archive.t @ 30844:b3d2e8cce78c stable
tests: work around FreeBSD's unzip having slightly different output
According to man 1 unzip, this unzip appeared in FreeBSD 8.0. It's
what comes as /usr/bin/unzip, so we may as well cater to it since it's
easy.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 18 Jan 2017 23:43:41 -0500 |
parents | 4259df518223 |
children | 636cf3f7620d |
line wrap: on
line diff
--- a/tests/test-archive.t Wed Jan 18 23:34:35 2017 -0500 +++ b/tests/test-archive.t Wed Jan 18 23:43:41 2017 -0500 @@ -327,14 +327,11 @@ $ hg add old $ hg commit -m old $ hg archive ../old.zip - $ unzip -l ../old.zip + $ unzip -l ../old.zip | grep -v -- ----- | egrep -v files$ Archive: ../old.zip \s*Length.* (re) - *-----* (glob) *172*80*00:00*old/.hg_archival.txt (glob) *0*80*00:00*old/old (glob) - *-----* (glob) - \s*172\s+2 files (re) show an error when a provided pattern matches no files