CI: Fix ci_lib and test_lib have_<cmd>() when <cmd> exits abnormally

We were not raising CalledProcessError when exit status != 0.
pull/1307/head
Alex Willmer 4 months ago
parent 885c6de65e
commit dc7fae973b

@ -58,6 +58,7 @@ def _have_cmd(args):
try:
subprocess.run(
args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
check=True,
)
except OSError as exc:
if exc.errno == errno.ENOENT:

@ -160,6 +160,7 @@ def _have_cmd(args):
try:
subprocess.run(
args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
check=True,
)
except OSError as exc:
if exc.errno == errno.ENOENT:

Loading…
Cancel
Save