Skip to content
Snippets Groups Projects
Commit d20803dd authored by Antoine Lambert's avatar Antoine Lambert
Browse files

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.
parent b9815ed5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment