# HG changeset patch # User Gregory Szorc # Date 1397957482 25200 # Node ID cbf5475827da3d2ca5a3aa775d6d4dba1c408501 # Parent d7a7825ff2cfcf512f7ad469e77ff39bbef50a34 run-tests: pass TestResult into run() diff -r d7a7825ff2cf -r cbf5475827da tests/run-tests.py --- a/tests/run-tests.py Sat Apr 19 13:50:25 2014 -0700 +++ b/tests/run-tests.py Sat Apr 19 18:31:22 2014 -0700 @@ -559,11 +559,10 @@ self._setreplacements(count) - def run(self): + def run(self, result): env = self._getenv() createhgrc(env['HGRCPATH'], self._options) - result = TestResult() starttime = time.time() def updateduration(): @@ -583,8 +582,6 @@ killdaemons(env['DAEMON_PIDS']) - return result - def _run(self, replacements, env): raise NotImplemented('Subclasses must implement Test.run()') @@ -1052,7 +1049,8 @@ os.remove(err) # Remove any previous output files t = runner(testpath, options, count) - res = t.run() + res = TestResult() + t.run(res) if res.interrupted: log('INTERRUPTED: %s (after %d seconds)' % (test, res.duration))