restore_pip_snapshot kept the return value of subprocess.check_output
as the result of each pip run and compared it with 0. check_output
returns pip's output, never an exit status, so the comparison held for
every run that succeeded: after the one run that installs the packages
named by version, pip was run again for each of them with --no-deps,
and every package of the three groups was reported under "Installation
failed for pip packages".
- Run pip with check_call, which returns the exit status and raises
when it is not 0
- Add tests that cover the three groups, the fallback after a failed
run, failures in every group at once, and a group whose option is
not given
The same change for manager-v4 is #3530.