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.
--- 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()