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
def test_start_capture_sigkill(self): config.config()['capture']['command'] = 'sleep 10' config.config()['capture']['sigkill_time'] = 0 capture.start_capture(self.event)
def test_start_capture_recording_command_failure(self): config.config()['capture']['command'] = 'false' with self.assertRaises(RuntimeError): capture.start_capture(self.event)
def test_start_capture(self): capture.start_capture(self.event)