def run_with_timeout()

in dcrpm/util.py [0:0]


def run_with_timeout(
    cmd,  # type: t.Sequence[str]
    timeout,  # type: int
    raise_on_nonzero=True,  # type: bool
    raise_on_timeout=True,  # type: bool
    exception_to_raise=DcRPMException,  # type: t.Type[Exception]