Mercurial > hg > mercurial-source
changeset 33486:9d1d3199382e
run-tests: install hg after computing tests to run
We're going to add a way to list tests, and we don't need to install hg for
that.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 06 Jun 2017 13:56:53 -0700 |
parents | d0b9c36851f5 |
children | 1270b00a385d |
files | tests/run-tests.py |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -2346,15 +2346,6 @@ return self._gettest(desc, i) try: - if self._installdir: - self._installhg() - self._checkhglib("Testing") - else: - self._usecorrectpython() - if self.options.chg: - assert self._installdir - self._installchg() - if self.options.restart: orig = list(testdescs) while testdescs: @@ -2392,6 +2383,16 @@ if self.options.verbose: verbosity = 2 runner = TextTestRunner(self, verbosity=verbosity) + + if self._installdir: + self._installhg() + self._checkhglib("Testing") + else: + self._usecorrectpython() + if self.options.chg: + assert self._installdir + self._installchg() + result = runner.run(suite) if result.failures: