# HG changeset patch # User anuraggoel # Date 2014-06-11 20:06:57 # Node ID 5ee547fdb0be67ed97eb737d5feda2932d3dfb93 # Parent 34e0bd895afc9e503185f28fa940901fe655b3df run-tests: produce error on running a failing test This patch fixes a regression recently introduced by a refactoring (see 92a6b16c9186 and about 200 previous changesets from Gregory Szorc). It produce an error message everytime with a test filename which gets fail while testing except at one condition when '--nodiff' option is enabled. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1076,6 +1076,9 @@ class TestResult(unittest._TextTestResul if self._options.first: self.stop() + else: + if not self._options.nodiff: + self.stream.write('\nERROR: %s output changed\n' % test) def addError(self, *args, **kwargs): super(TestResult, self).addError(*args, **kwargs)