예제 #1
0
파일: pytest.py 프로젝트: dials/cctbx
 def runtest(self):
   rc = run_command(self.full_cmd)
   if rc is None:
     # run_command only returns None if CTRL+C pressed
     raise KeyboardInterrupt()
   self.add_report_section('call', 'stdout', '\n'.join(rc.stdout_lines))
   self.add_report_section('call', 'stderr', '\n'.join(rc.stderr_lines))
   if rc.stderr_lines or rc.return_code != 0:
     raise LibtbxTestException(rc.stdout_lines, rc.stderr_lines)
예제 #2
0
파일: conftest.py 프로젝트: xia2/i19
 def runtest(self):
   rc = run_command(self.full_cmd)
   assert rc is not None
   if rc.error_lines or rc.return_code != 0:
     raise LibtbxTestException(rc.stdout_lines, rc.stderr_lines)