Patchwork [1,of,3] hgweb: test the order of archive links

login
register
mail settings
Submitter Anton Shestakov
Date Jan. 11, 2017, 2:53 a.m.
Message ID <942eaf4846b85c7baa1c.1484103197@neuro>
Download mbox | patch
Permalink /patch/18179/
State Accepted
Headers show

Comments

Anton Shestakov - Jan. 11, 2017, 2:53 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1484069107 -28800
#      Wed Jan 11 01:25:07 2017 +0800
# Node ID 942eaf4846b85c7baa1c0622e2db0c299296a2b9
# Parent  cfd14b0508ddf8edf156d202e2c5d07b259c2f46
hgweb: test the order of archive links

Patch

diff --git a/tests/test-archive.t b/tests/test-archive.t
--- a/tests/test-archive.t
+++ b/tests/test-archive.t
@@ -61,6 +61,13 @@  check http return codes
   $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
   $ cat hg.pid >> $DAEMON_PIDS
 
+check archive links' order
+
+  $ get-with-headers.py localhost:$HGPORT "?revcount=1" | grep '/archive/tip.'
+  <a href="/archive/tip.zip">zip</a>
+  <a href="/archive/tip.tar.gz">gz</a>
+  <a href="/archive/tip.tar.bz2">bz2</a>
+
 invalid arch type should give 404
 
   $ get-with-headers.py localhost:$HGPORT "archive/tip.invalid" | head -n 1