comparison tests/run-tests.py @ 21440:ece127734db1

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.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Apr 2014 14:04:37 -0700
parents 2e22954b97e3
children 213339e9bada
comparison
equal deleted inserted replaced
21439:2e22954b97e3 21440:ece127734db1
492 res = self.success() 492 res = self.success()
493 493
494 494
495 vlog("# Ret was:", ret) 495 vlog("# Ret was:", ret)
496 496
497 if not options.verbose: 497 # Don't print progress in unittest mode because that is handled
498 # by TestResult.
499 if not options.verbose and not self._unittest:
498 iolock.acquire() 500 iolock.acquire()
499 sys.stdout.write(res[0]) 501 sys.stdout.write(res[0])
500 sys.stdout.flush() 502 sys.stdout.flush()
501 iolock.release() 503 iolock.release()
502 504