Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus committed Sep 23, 2024
1 parent b511c5e commit ef6463a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/backends/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from ipaddress import ip_address


def run_cmd(*cmd, ignore_error=False):
p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
def run_cmd(*cmd, ignore_error=False, shell=False):
p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, shell=shell)
if not ignore_error and p.returncode:
raise SystemExit(f"{cmd} exited with non-zero code with following logs:\n {p.stdout}")

Expand Down

0 comments on commit ef6463a

Please sign in to comment.