Files
Comfy-Org-ComfyUI-Manager/tests
Perfect Johny 7b61a5cb07 Read pip's exit status when restoring a snapshot's pip packages (#3425)
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.
2026-11-15 10:18:23 +09:00
..