diff --git a/satella/__init__.py b/satella/__init__.py index 10939f7788af8fa9e6fed2588bd542abcc817572..f92ee80e98a4cbf74860a1572c6388c210610527 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.7.16_a4' +__version__ = '2.7.16' diff --git a/satella/processes.py b/satella/processes.py index cd9a431a81b73f7c6e3196fcecc935a11bd21ebd..af56d19066b9656220807de8be0a74421c463fc0 100644 --- a/satella/processes.py +++ b/satella/processes.py @@ -30,28 +30,23 @@ def call_and_return_stdout(args: tp.Union[str, tp.List[str]], within this time, it will be sent a SIGKILL :param expected_return_code: an expected return code of this process. 0 is the default. If process returns anything else, ProcessFailed will be raise - :param ProcessFailed: process' result code was different from the requested + :raises ProcessFailed: process' result code was different from the requested """ if isinstance(args, str): args = args.split(' ') - logger.warning('Modifying kwargs') kwargs['stdout'] = subprocess.PIPE stdout_list = [] - logger.warning('Starting popen') proc = subprocess.Popen(args, **kwargs) reader_thread = threading.Thread(target=read_nowait, args=(proc, stdout_list), daemon=True) - logger.warning('Starting rt') reader_thread.start() - logger.warning('Waiting for termination') try: proc.wait(timeout=timeout) except subprocess.TimeoutExpired: proc.kill() proc.wait() - logger.warning('Terminated') if proc.returncode != expected_return_code: raise ProcessFailed(proc.returncode)