Skip to content

Commit

Permalink
fix: respect arg when executing command
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Zwettler <felix.zwettler@duagon.com>
  • Loading branch information
flxzt committed Apr 4, 2024
1 parent 460c581 commit 76a0b1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions labgrid/driver/sigrokdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def _call_with_driver_blocking(self, *args, log_output=False):
text=True
)
stdout, stderr = process.communicate()
self.logger.debug("stdout: %s", stdout)
self.logger.debug("stderr: %s", stderr)
if log_output:
self.logger.debug("stdout: %s", stdout)
self.logger.debug("stderr: %s", stderr)
if process.returncode != 0:
raise OSError
return stdout, stderr
Expand Down

0 comments on commit 76a0b1e

Please sign in to comment.