From patchwork Tue Jul 10 13:11:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3898: run-tests: fix test result verbosity From: phabricator X-Patchwork-Id: 32738 Message-Id: <54172b7b0abc5cfde88647a2213bb529@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Tue, 10 Jul 2018 13:11:59 +0000 lothiraldan updated this revision to Diff 9497. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3898?vs=9494&id=9497 REVISION DETAIL https://phab.mercurial-scm.org/D3898 AFFECTED FILES tests/run-tests.py CHANGE DETAILS To: lothiraldan, #hg-reviewers Cc: mercurial-devel diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -2106,8 +2106,9 @@ super(TextTestRunner, self).__init__(*args, **kwargs) self._runner = runner + self._result = getTestResult()(self._runner.options, self.stream, - self.descriptions, 0) + self.descriptions, self.verbosity) def listtests(self, test): test = sorted(test, key=lambda t: t.name) @@ -2740,7 +2741,9 @@ showchannels=self.options.showchannels, tests=tests, loadtest=_reloadtest) verbosity = 1 - if self.options.verbose: + if self.options.list_tests: + verbosity = 0 + elif self.options.verbose: verbosity = 2 runner = TextTestRunner(self, verbosity=verbosity)