Patchwork D12036: test-http-bad-server: move the extension in `testlib`

login
register
mail settings
Submitter phabricator
Date Jan. 24, 2022, 2:45 p.m.
Message ID <differential-rev-PHID-DREV-yrhb7bdy3u3yzbo7uzwa-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50362/
State New
Headers show

Comments

phabricator - Jan. 24, 2022, 2:45 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This seems like a better location for it.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12036

AFFECTED FILES
  tests/badserverext.py
  tests/test-check-code.t
  tests/test-http-bad-server.t
  tests/testlib/badserverext.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/badserverext.py b/tests/testlib/badserverext.py
rename from tests/badserverext.py
rename to tests/testlib/badserverext.py
diff --git a/tests/test-http-bad-server.t b/tests/test-http-bad-server.t
--- a/tests/test-http-bad-server.t
+++ b/tests/test-http-bad-server.t
@@ -30,7 +30,7 @@ 
 
   $ cat > .hg/hgrc << EOF
   > [extensions]
-  > badserver = $TESTDIR/badserverext.py
+  > badserver = $TESTDIR/testlib/badserverext.py
   > [server]
   > compressionengines = none
   > EOF
diff --git a/tests/test-check-code.t b/tests/test-check-code.t
--- a/tests/test-check-code.t
+++ b/tests/test-check-code.t
@@ -33,7 +33,7 @@ 
   Skipping contrib/packaging/hgpackaging/wix.py it has no-che?k-code (glob)
   Skipping i18n/polib.py it has no-che?k-code (glob)
   Skipping mercurial/statprof.py it has no-che?k-code (glob)
-  Skipping tests/badserverext.py it has no-che?k-code (glob)
+  Skipping tests/testlib/badserverext.py it has no-che?k-code (glob)
 
 @commands in debugcommands.py should be in alphabetical order.