# HG changeset patch # User Gregory Szorc # Date 2014-04-19 20:11:49 # Node ID a2774731a51af4e16b750cc85cc170cd7d784215 # Parent 7861de61583bce2529e8ac0ae44a7017ab55386e 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. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -556,6 +556,8 @@ class Test(object): 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 @@ def runone(options, test, count): t = runner(testpath, options, threadtmp) replacements, port = t.getreplacements(count) env = t.getenv(port) - createhgrc(env['HGRCPATH'], options) starttime = time.time() try: