tests/run-tests.py
changeset 22839 9f0f50c63e16
parent 22838 9a20f53e436f
child 23035 5f8f8225fc7e
equal deleted inserted replaced
22838:9a20f53e436f 22839:9f0f50c63e16
  1204             pass
  1204             pass
  1205         elif self._options.view:
  1205         elif self._options.view:
  1206             os.system("%s %s %s" %
  1206             os.system("%s %s %s" %
  1207                       (self._options.view, test.refpath, test.errpath))
  1207                       (self._options.view, test.refpath, test.errpath))
  1208         else:
  1208         else:
  1209             failed, lines = getdiff(expected, got,
  1209             servefail, lines = getdiff(expected, got,
  1210                                     test.refpath, test.errpath)
  1210                                        test.refpath, test.errpath)
  1211             if failed:
  1211             if servefail:
  1212                 self.addFailure(test, 'diff generation failed')
  1212                 self.addFailure(
       
  1213                     test,
       
  1214                     'server failed to start (HGPORT=%s)' % test._startport)
  1213             else:
  1215             else:
  1214                 self.stream.write('\n')
  1216                 self.stream.write('\n')
  1215                 for line in lines:
  1217                 for line in lines:
  1216                     self.stream.write(line)
  1218                     self.stream.write(line)
  1217                 self.stream.flush()
  1219                 self.stream.flush()