changeset 21300:a2774731a51a

run-tests: move createhgrc() call into Test.run() createhgrc() is an implementation detail of how tests are run. It makes sense to move it into Test.run(). Note that this will cause the test execution time to include the creation of hgrc. The author does not believe this is a significant change worth worrying about.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 19 Apr 2014 13:11:49 -0700
parents 7861de61583b
children a77f4c2e1898
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sat Apr 19 13:07:05 2014 -0700
+++ b/tests/run-tests.py	Sat Apr 19 13:11:49 2014 -0700
@@ -556,6 +556,8 @@
         os.mkdir(self.testtmp)
 
     def run(self, replacements, env):
+        createhgrc(env['HGRCPATH'], self._options)
+
         return self._run(replacements, env)
 
     def _run(self, replacements, env):
@@ -1020,7 +1022,6 @@
     t = runner(testpath, options, threadtmp)
     replacements, port = t.getreplacements(count)
     env = t.getenv(port)
-    createhgrc(env['HGRCPATH'], options)
 
     starttime = time.time()
     try: