Skip to content

Commit

Permalink
add debug output to run command
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Jahn committed Nov 7, 2024
1 parent 83a5427 commit fe968ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def run_command(command, check=True, no_error=True):
stdout = result.stdout.decode('utf8')

if check:
assert result.returncode == 0
assert result.returncode == 0, (stdout, stderr)

lines = [line.strip() for line in stdout.split('\n')]

if no_error:
assert stderr == ''
assert stderr == '', stderr

return (lines, stdout, stderr)

0 comments on commit fe968ed

Please sign in to comment.