tests/run-tests.py
changeset 46384 7bb31c367847
parent 46327 85c0c7145f8e
child 46668 fb2368598281
equal deleted inserted replaced
46383:374d7fff7cb5 46384:7bb31c367847
  2276                     answer = sys.stdin.readline().strip()
  2276                     answer = sys.stdin.readline().strip()
  2277                     if answer.lower() in ('y', 'yes'):
  2277                     if answer.lower() in ('y', 'yes'):
  2278                         if test.path.endswith(b'.t'):
  2278                         if test.path.endswith(b'.t'):
  2279                             rename(test.errpath, test.path)
  2279                             rename(test.errpath, test.path)
  2280                         else:
  2280                         else:
  2281                             rename(test.errpath, '%s.out' % test.path)
  2281                             rename(test.errpath, b'%s.out' % test.path)
  2282                         accepted = True
  2282                         accepted = True
  2283             if not accepted:
  2283             if not accepted:
  2284                 self.faildata[test.name] = b''.join(lines)
  2284                 self.faildata[test.name] = b''.join(lines)
  2285 
  2285 
  2286         return accepted
  2286         return accepted