comparison tests/run-tests.py @ 21919:c350cff58444

run-tests: make --view work again
author Matt Mackall <mpm@selenic.com>
date Fri, 18 Jul 2014 17:52:18 -0500
parents 10abc3a5c6b2
children 4ca4e1572022 68a7ef4311ce
comparison
equal deleted inserted replaced
21918:10abc3a5c6b2 21919:c350cff58444
1134 1134
1135 iolock.acquire() 1135 iolock.acquire()
1136 if self._options.nodiff: 1136 if self._options.nodiff:
1137 pass 1137 pass
1138 elif self._options.view: 1138 elif self._options.view:
1139 os.system("%s %s %s" % (self._view, test.refpath, test.errpath)) 1139 os.system("%s %s %s" %
1140 (self._options.view, test.refpath, test.errpath))
1140 else: 1141 else:
1141 failed, lines = getdiff(expected, got, 1142 failed, lines = getdiff(expected, got,
1142 test.refpath, test.errpath) 1143 test.refpath, test.errpath)
1143 if failed: 1144 if failed:
1144 self.addFailure(test, 'diff generation failed') 1145 self.addFailure(test, 'diff generation failed')