comparison 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
comparison
equal deleted inserted replaced
30843:2fb3ae89e4e1 30844:b3d2e8cce78c
325 325
326 $ touch -t 197501010000 old 326 $ touch -t 197501010000 old
327 $ hg add old 327 $ hg add old
328 $ hg commit -m old 328 $ hg commit -m old
329 $ hg archive ../old.zip 329 $ hg archive ../old.zip
330 $ unzip -l ../old.zip 330 $ unzip -l ../old.zip | grep -v -- ----- | egrep -v files$
331 Archive: ../old.zip 331 Archive: ../old.zip
332 \s*Length.* (re) 332 \s*Length.* (re)
333 *-----* (glob)
334 *172*80*00:00*old/.hg_archival.txt (glob) 333 *172*80*00:00*old/.hg_archival.txt (glob)
335 *0*80*00:00*old/old (glob) 334 *0*80*00:00*old/old (glob)
336 *-----* (glob)
337 \s*172\s+2 files (re)
338 335
339 show an error when a provided pattern matches no files 336 show an error when a provided pattern matches no files
340 337
341 $ hg archive -I file_that_does_not_exist.foo ../empty.zip 338 $ hg archive -I file_that_does_not_exist.foo ../empty.zip
342 abort: no files match the archive pattern 339 abort: no files match the archive pattern