test-subrepo-recursion: glob out all the date listed by unzip -l
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 07 May 2015 14:57:02 -0700
changeset 24963 d78dea2248b1
parent 24962 eecd48369caa
child 24964 fc92ccbbeb9a
test-subrepo-recursion: glob out all the date listed by unzip -l This date output is unstable (01-01-1980 vs 1980-01-01). As the test is not about the modification date, we glob the data out. Caught by buildbot.
tests/test-subrepo-recursion.t
--- a/tests/test-subrepo-recursion.t	Tue Apr 14 13:31:50 2015 -0700
+++ b/tests/test-subrepo-recursion.t	Thu May 07 14:57:02 2015 -0700
@@ -339,18 +339,21 @@
   archiving (foo/bar) [================================>] 1/1\r (no-eol) (glob) (esc)
   archiving (foo/bar) [================================>] 1/1\r (no-eol) (glob) (esc)
                                                               \r (no-eol) (esc)
+
+(unzip date formating is unstable, we do not care about it and glob it out)
+
   $ unzip -l ../archive.zip
   Archive:  ../archive.zip
     Length      Date    Time    Name
   ---------  ---------- -----   ----
-        172  01-01-1980 00:00   .hg_archival.txt
-         10  01-01-1980 00:00   .hgsub
-         45  01-01-1980 00:00   .hgsubstate
-          3  01-01-1980 00:00   x.txt
-         10  01-01-1980 00:00   foo/.hgsub
-         45  01-01-1980 00:00   foo/.hgsubstate
-          9  01-01-1980 00:00   foo/y.txt
-          9  01-01-1980 00:00   foo/bar/z.txt
+        172  ?????????? 00:00   .hg_archival.txt (glob)
+         10  ?????????? 00:00   .hgsub (glob)
+         45  ?????????? 00:00   .hgsubstate (glob)
+          3  ?????????? 00:00   x.txt (glob)
+         10  ?????????? 00:00   foo/.hgsub (glob)
+         45  ?????????? 00:00   foo/.hgsubstate (glob)
+          9  ?????????? 00:00   foo/y.txt (glob)
+          9  ?????????? 00:00   foo/bar/z.txt (glob)
   ---------                     -------
         303                     8 files