Patchwork [8,of,8] tests: don't run couple of tests related to extensions loading with chg

login
register
mail settings
Submitter Pulkit Goyal
Date March 26, 2020, 7:36 a.m.
Message ID <62c6488a31b1af1a36ed.1585208215@workspace>
Download mbox | patch
Permalink /patch/45903/
State Accepted
Headers show

Comments

Pulkit Goyal - March 26, 2020, 7:36 a.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1585147557 -19800
#      Wed Mar 25 20:15:57 2020 +0530
# Node ID 62c6488a31b1af1a36edf04f7797bc54c7061671
# Parent  eedfec1725f230d9d074ffca2d543b119bc18954
tests: don't run couple of tests related to extensions loading with chg

The couple of files test extensions loading and debugging that. It sets
`devel.debug.extensions` to True to do that.
Either we have to restart chg if this config is set or just don't run these
tests on chg. I tried the first way by adding the config option to chgserver.py
list of config subsections but that does not seem to work.

Patch

diff --git a/tests/test-bad-extension.t b/tests/test-bad-extension.t
--- a/tests/test-bad-extension.t
+++ b/tests/test-bad-extension.t
@@ -1,3 +1,4 @@ 
+#require no-chg
   $ filterlog () {
   >   sed -e 's!^[0-9/]* [0-9:]* ([0-9]*)>!YYYY/MM/DD HH:MM:SS (PID)>!'
   > }
diff --git a/tests/test-extension-timing.t b/tests/test-extension-timing.t
--- a/tests/test-extension-timing.t
+++ b/tests/test-extension-timing.t
@@ -1,3 +1,5 @@ 
+#require no-chg
+
 Test basic extension support
 
   $ cat > foobar.py <<EOF