Пример #1
0
 def test_start_capture_recording_command_failure(self):
     config.config()['capture']['command'] = 'false'
     try:
         capture.start_capture(self.event)
         assert False
     except RuntimeError:
         assert True
Пример #2
0
 def test_start_capture_sigkill(self):
     config.config()['capture']['command'] = 'sleep 10'
     config.config()['capture']['sigkill_time'] = 0
     capture.start_capture(self.event)
Пример #3
0
 def test_start_capture_recording_command_failure(self):
     config.config()['capture']['command'] = 'false'
     with self.assertRaises(RuntimeError):
         capture.start_capture(self.event)
Пример #4
0
 def test_start_capture(self):
     capture.start_capture(self.event)