##// END OF EJS Templates
run-tests: add iolock to failure output
Matt Mackall -
r21993:284a8c9f default
parent child Browse files
Show More
@@ -1085,10 +1085,12 b' class TestResult(unittest._TextTestResul'
1085 if self._options.first:
1085 if self._options.first:
1086 self.stop()
1086 self.stop()
1087 else:
1087 else:
1088 iolock.acquire()
1088 if not self._options.nodiff:
1089 if not self._options.nodiff:
1089 self.stream.write('\nERROR: %s output changed\n' % test)
1090 self.stream.write('\nERROR: %s output changed\n' % test)
1090
1091
1091 self.stream.write('!')
1092 self.stream.write('!')
1093 iolock.release()
1092
1094
1093 def addError(self, *args, **kwargs):
1095 def addError(self, *args, **kwargs):
1094 super(TestResult, self).addError(*args, **kwargs)
1096 super(TestResult, self).addError(*args, **kwargs)
General Comments 0
You need to be logged in to leave comments. Login now