def test_init(self): """Test init.""" error.MinimizationNotFinishedError() error.SanitizerNotProvidedError() error.ClusterFuzzError(500, 'resp', 'identity') error.PermissionsTooPermissiveError('filename', 'perm') error.GomaNotInstalledError() error.JobTypeNotSupportedError('job', '1234') error.NotInstalledError('bin') error.GsutilNotInstalledError() error.BadJobTypeDefinitionError('job') error.UnreproducibleError(10, [Signature('type', ['a', 'b'], 'output')]) error.DirtyRepoError('source') error.CommandFailedError('cmd', 12, 'err') error.KillProcessFailedError('cmd', 123) error.UserRespondingNoError('question') error.InvalidTestcaseIdError('123456') error.UnauthorizedError('123456', 'identity') error.DifferentStacktraceError( 10, [Signature('type', ['a', 'b'], 'output')]) error.GdbNotSupportedOnAndroidError() error.BootFailed() error.NoAndroidDeviceIdError('ANDROID_SERIAL') error.GclientManagedEnabledException('/chromium/.gclient')
def kill(proc): """Kill a process multiple times. See: https://github.com/google/clusterfuzz-tools/pull/301""" try: for sig in [ signal.SIGTERM, signal.SIGTERM, signal.SIGKILL, signal.SIGKILL ]: logger.debug('Killing pid=%s with %s', proc.pid, sig) # Process leader id is the group id. os.killpg(proc.pid, sig) # Wait for any shutdown stacktrace to be dumped. time.sleep(3) raise error.KillProcessFailedError(proc.args, proc.pid) except OSError as e: if e.errno != NO_SUCH_PROCESS_ERRNO: raise
def test_init(self): """Test init.""" error.MinimizationNotFinishedError() error.SanitizerNotProvidedError() error.ClusterFuzzError(500, 'resp') error.PermissionsTooPermissiveError('filename', 'perm') error.GomaNotInstalledError() error.JobTypeNotSupportedError('job') error.NotInstalledError('bin') error.GsutilNotInstalledError() error.BadJobTypeDefinitionError('job') error.UnreproducibleError(10, [Signature('type', ['a', 'b'], 'output')]) error.DirtyRepoError('source') error.CommandFailedError('cmd', 12, 'err') error.KillProcessFailedError('cmd', 123) error.UserRespondingNoError('question') error.InvalidTestcaseIdError('123456') error.UnauthorizedError('123456') error.DifferentStacktraceError( 10, [Signature('type', ['a', 'b'], 'output')])