tests: mark tests that fail when using chg as #require no-chg
authorKyle Lippincott <spectral@google.com>
Tue, 15 May 2018 11:52:43 -0700
changeset 46202 538e850ae73745c55bbb7da1ee3659c21a315688
parent 46201 9d44c71bd892efb3a4407678d5bc77213861c159
child 46203 48853a92775710622e9b6ec4ec1b3128e87919e6
push id810
push usergszorc@mozilla.com
push dateThu, 17 May 2018 19:27:32 +0000
tests: mark tests that fail when using chg as #require no-chg As far as I can tell, most of these failures are due to using $HGPORT, which it seems chg might be using itself? I don't know enough to debug these failures to fix them properly. Differential Revision: https://phab.mercurial-scm.org/D3562
tests/test-clone-uncompressed.t
tests/test-clonebundles.t
tests/test-http-api-httpv2.t
tests/test-http-api.t
tests/test-http-protocol.t
tests/test-lfs-largefiles.t
tests/test-lfs-serve-access.t
tests/test-lfs-serve.t
tests/test-lfs-test-server.t
tests/test-lfs.t
tests/test-parseindex.t
tests/test-pull-bundle.t
tests/test-push-http.t
tests/test-ssh-proto.t
tests/test-wireproto-command-capabilities.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -1,9 +1,9 @@
-#require serve no-reposimplestore
+#require serve no-reposimplestore no-chg
 
 #testcases stream-legacy stream-bundle2
 
 #if stream-bundle2
   $ cat << EOF >> $HGRCPATH
   > [experimental]
   > bundle2.stream = yes
   > EOF
--- a/tests/test-clonebundles.t
+++ b/tests/test-clonebundles.t
@@ -1,9 +1,9 @@
-#require no-reposimplestore
+#require no-reposimplestore no-chg
 
 Set up a server
 
   $ hg init server
   $ cd server
   $ cat >> .hg/hgrc << EOF
   > [extensions]
   > clonebundles =
--- a/tests/test-http-api-httpv2.t
+++ b/tests/test-http-api-httpv2.t
@@ -1,8 +1,10 @@
+#require no-chg
+
   $ . $TESTDIR/wireprotohelpers.sh
   $ enabledummycommands
 
   $ hg init server
   $ cat > server/.hg/hgrc << EOF
   > [experimental]
   > web.apiserver = true
   > EOF
--- a/tests/test-http-api.t
+++ b/tests/test-http-api.t
@@ -1,8 +1,10 @@
+#require no-chg
+
   $ send() {
   >   hg --verbose debugwireproto --peer raw http://$LOCALIP:$HGPORT/
   > }
 
   $ hg init server
   $ hg -R server serve -p $HGPORT -d --pid-file hg.pid
   $ cat hg.pid > $DAEMON_PIDS
 
--- a/tests/test-http-protocol.t
+++ b/tests/test-http-protocol.t
@@ -1,8 +1,10 @@
+#require no-chg
+
   $ . $TESTDIR/wireprotohelpers.sh
 
   $ cat >> $HGRCPATH << EOF
   > [web]
   > push_ssl = false
   > allow_push = *
   > EOF
 
--- a/tests/test-lfs-largefiles.t
+++ b/tests/test-lfs-largefiles.t
@@ -1,9 +1,9 @@
-#require no-reposimplestore
+#require no-reposimplestore no-chg
 
 This tests the interaction between the largefiles and lfs extensions, and
 conversion from largefiles -> lfs.
 
   $ cat >> $HGRCPATH << EOF
   > [extensions]
   > largefiles =
   > 
--- a/tests/test-lfs-serve-access.t
+++ b/tests/test-lfs-serve-access.t
@@ -1,9 +1,9 @@
-#require serve no-reposimplestore
+#require serve no-reposimplestore no-chg
 
   $ cat >> $HGRCPATH <<EOF
   > [extensions]
   > lfs=
   > [lfs]
   > track=all()
   > [web]
   > push_ssl = False
--- a/tests/test-lfs-serve.t
+++ b/tests/test-lfs-serve.t
@@ -1,10 +1,10 @@
 #testcases lfsremote-on lfsremote-off
-#require serve no-reposimplestore
+#require serve no-reposimplestore no-chg
 
 This test splits `hg serve` with and without using the extension into separate
 tests cases.  The tests are broken down as follows, where "LFS"/"No-LFS"
 indicates whether or not there are commits that use an LFS file, and "D"/"E"
 indicates whether or not the extension is loaded.  The "X" cases are not tested
 individually, because the lfs requirement causes the process to bail early if
 the extension is disabled.
 
--- a/tests/test-lfs-test-server.t
+++ b/tests/test-lfs-test-server.t
@@ -1,9 +1,9 @@
-#require no-reposimplestore
+#require no-reposimplestore no-chg
 #testcases git-server hg-server
 
 #if git-server
 #require lfs-test-server
 #else
 #require serve
 #endif
 
--- a/tests/test-lfs.t
+++ b/tests/test-lfs.t
@@ -1,9 +1,9 @@
-#require no-reposimplestore
+#require no-reposimplestore no-chg
 
 # Initial setup
 
   $ cat >> $HGRCPATH << EOF
   > [extensions]
   > lfs=
   > [lfs]
   > # Test deprecated config
--- a/tests/test-parseindex.t
+++ b/tests/test-parseindex.t
@@ -1,8 +1,10 @@
+#require no-chg
+
 revlog.parseindex must be able to parse the index file even if
 an index entry is split between two 64k blocks.  The ideal test
 would be to create an index file with inline data where
 64k < size < 64k + 64 (64k is the size of the read buffer, 64 is
 the size of an index entry) and with an index entry starting right
 before the 64k block boundary, and try to read it.
 We approximate that by reducing the read buffer to 1 byte.
 
--- a/tests/test-pull-bundle.t
+++ b/tests/test-pull-bundle.t
@@ -1,8 +1,10 @@
+#require no-chg
+
   $ hg init repo
   $ cd repo
   $ echo foo > foo
   $ hg ci -qAm 'add foo'
   $ echo >> foo
   $ hg ci -m 'change foo'
   $ hg up -qC 0
   $ echo bar > bar
--- a/tests/test-push-http.t
+++ b/tests/test-push-http.t
@@ -1,8 +1,10 @@
+#require no-chg
+
 #testcases bundle1 bundle2
 
 #if bundle1
   $ cat << EOF >> $HGRCPATH
   > [devel]
   > # This test is dedicated to interaction through old bundle
   > legacy.exchange = bundle1
   > EOF
--- a/tests/test-ssh-proto.t
+++ b/tests/test-ssh-proto.t
@@ -1,8 +1,10 @@
+#require no-chg
+
   $ cat > hgrc-sshv2 << EOF
   > %include $HGRCPATH
   > [experimental]
   > sshpeer.advertise-v2 = true
   > sshserver.support-v2 = true
   > EOF
 
 Helper function to run protocol tests against multiple protocol versions.
--- a/tests/test-wireproto-command-capabilities.t
+++ b/tests/test-wireproto-command-capabilities.t
@@ -1,8 +1,10 @@
+#require no-chg
+
   $ . $TESTDIR/wireprotohelpers.sh
 
   $ hg init server
 
 zstd isn't present in plain builds. Make tests easier by removing
 zstd from the equation.
 
   $ cat >> server/.hg/hgrc << EOF