comparison tests/test-hgweb-json.t @ 29457: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
parents f3dca85bd2d1
children 59058549a611
comparison
equal deleted inserted replaced
29456:e61d384e3be4 29457:81e0955ca2fd
98 user: test 98 user: test
99 date: Thu Jan 01 00:00:00 1970 +0000 99 date: Thu Jan 01 00:00:00 1970 +0000
100 summary: initial 100 summary: initial
101 101
102 102
103 $ echo '[web]' >> .hg/hgrc
104 $ echo 'allow_archive = bz2' >> .hg/hgrc
103 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log 105 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log
104 $ cat hg.pid >> $DAEMON_PIDS 106 $ cat hg.pid >> $DAEMON_PIDS
105 107
106 (Try to keep these in roughly the order they are defined in webcommands.py) 108 (Try to keep these in roughly the order they are defined in webcommands.py)
107 109
798 800
799 $ request json-summary 801 $ request json-summary
800 200 Script output follows 802 200 Script output follows
801 803
802 { 804 {
803 "archives": [], 805 "archives": [
806 {
807 "extension": ".tar.bz2",
808 "node": "tip",
809 "type": "bz2"
810 }
811 ],
804 "bookmarks": [ 812 "bookmarks": [
805 { 813 {
806 "bookmark": "bookmark2", 814 "bookmark": "bookmark2",
807 "date": [ 815 "date": [
808 0.0, 816 0.0,