test: sort output of listkey command
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 22 Apr 2014 17:15:05 -0700
changeset 906 24f59f38a202
parent 905 b177fde040dd
child 907 c17ab719da56
test: sort output of listkey command The pushkey namespace came as dict key. So they have no defined order. We sort them to stabilize the test.
tests/test-simple4server.t
--- a/tests/test-simple4server.t	Tue Apr 22 17:00:24 2014 -0700
+++ b/tests/test-simple4server.t	Tue Apr 22 17:15:05 2014 -0700
@@ -80,11 +80,11 @@
   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
   lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 (no-eol)
 
-  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
+  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
   bookmarks	
+  namespaces	
+  obsolete	
   phases	
-  namespaces	
-  obsolete	 (no-eol)
 
 Push
 =============
@@ -146,11 +146,11 @@
 ===========================================
 (used by bitbucket to select which repo use evolve)
 
-  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
+  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
   bookmarks	
+  namespaces	
+  obsolete	
   phases	
-  namespaces	
-  obsolete	 (no-eol)
   $ curl --silent http://localhost:$HGPORT/?cmd=hello
   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0
   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
@@ -162,10 +162,10 @@
   $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
   $ cat hg.pid >> $DAEMON_PIDS
 
-  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
+  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
   bookmarks	
+  namespaces	
   phases	
-  namespaces	 (no-eol)
   $ curl --silent http://localhost:$HGPORT/?cmd=hello
   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
@@ -176,11 +176,11 @@
   $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
   $ cat hg.pid >> $DAEMON_PIDS
 
-  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
+  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
   bookmarks	
+  namespaces	
+  obsolete	
   phases	
-  namespaces	
-  obsolete	 (no-eol)
   $ curl --silent http://localhost:$HGPORT/?cmd=hello
   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0
   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities