# HG changeset patch # User Gregory Szorc # Date 1398027877 25200 # Node ID ece127734db101fc9bbe7bc6fdef4467ca9b234c # Parent 2e22954b97e35c84fb11e3387b251461d324f0b1 run-tests: don't print progress from Test when in unittest mode unittest does its own printing of progress indicators as part of TestResult. So, there is no need to print them when running in unittest mode. This will fix the double output of progress indicators that had been occurring in unittest mode. diff -r 2e22954b97e3 -r ece127734db1 tests/run-tests.py --- a/tests/run-tests.py Sun Apr 20 13:04:19 2014 -0700 +++ b/tests/run-tests.py Sun Apr 20 14:04:37 2014 -0700 @@ -494,7 +494,9 @@ vlog("# Ret was:", ret) - if not options.verbose: + # Don't print progress in unittest mode because that is handled + # by TestResult. + if not options.verbose and not self._unittest: iolock.acquire() sys.stdout.write(res[0]) sys.stdout.flush()