opam: Ensure CalledProcessError is raised when an opam command failed
Use subprocess.run
instead of subprocess.call
and subprocess.Popen
to
call opam commands and set check
parameter to True in order to raise
CalledProcessError
exception when an opam
command failed.
This should help spotting issues with the opam lister.
Related to swh/infra/sysadm-environment#4971 (closed).
Merge request reports
Activity
Please register or sign in to reply