From e1e1bdc20f2f851ca19deae152a76d2f401effe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Wed, 28 Apr 2021 15:44:53 -0700 Subject: [PATCH] runners: core: add **kwargs to other subprocess wrappers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just to make these match check_output(). Signed-off-by: Martí Bolívar --- scripts/west_commands/runners/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/west_commands/runners/core.py b/scripts/west_commands/runners/core.py index d61f3e03cb4..6d74e0bd8b7 100644 --- a/scripts/west_commands/runners/core.py +++ b/scripts/west_commands/runners/core.py @@ -552,7 +552,7 @@ class ZephyrBinaryRunner(abc.ABC): else: self.logger.info(escaped) - def call(self, cmd: List[str]) -> int: + def call(self, cmd: List[str], **kwargs) -> int: '''Subclass subprocess.call() wrapper. Subclasses should use this method to run command in a @@ -562,9 +562,9 @@ class ZephyrBinaryRunner(abc.ABC): self._log_cmd(cmd) if _DRY_RUN: return 0 - return subprocess.call(cmd) + return subprocess.call(cmd, **kwargs) - def check_call(self, cmd: List[str]): + def check_call(self, cmd: List[str], **kwargs): '''Subclass subprocess.check_call() wrapper. Subclasses should use this method to run command in a @@ -574,7 +574,7 @@ class ZephyrBinaryRunner(abc.ABC): self._log_cmd(cmd) if _DRY_RUN: return - subprocess.check_call(cmd) + subprocess.check_call(cmd, **kwargs) def check_output(self, cmd: List[str], **kwargs) -> bytes: '''Subclass subprocess.check_output() wrapper.