changeset 30218:81e0955ca2fd

tests: allow bz2 archives in test-hgweb-json.t Only testing a specific type because list items seem to be in arbitrary order.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 01 Jul 2016 13:36:59 +0800 (2016-07-01)
parents e61d384e3be4
children 59058549a611
files tests/test-hgweb-json.t
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgweb-json.t
+++ b/tests/test-hgweb-json.t
@@ -100,6 +100,8 @@
      summary:     initial
   
 
+  $ echo '[web]' >> .hg/hgrc
+  $ echo 'allow_archive = bz2' >> .hg/hgrc
   $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log
   $ cat hg.pid >> $DAEMON_PIDS
 
@@ -800,7 +802,13 @@
   200 Script output follows
   
   {
-    "archives": [],
+    "archives": [
+      {
+        "extension": ".tar.bz2",
+        "node": "tip",
+        "type": "bz2"
+      }
+    ],
     "bookmarks": [
       {
         "bookmark": "bookmark2",