Mercurial > evolve
diff tests/test-simple4server.t @ 906:24f59f38a202
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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 22 Apr 2014 17:15:05 -0700 |
parents | 6cb81dbb9516 |
children | b71b563b17de |
line wrap: on
line diff
--- 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