Skip to content

loader/opam/tests: Do not run actual opam init command call

Instead, this fixes the pseudo fake opam root present in tests datadir folder to the right structure and then installs it properly for the test to use.

Another benefit from this is now inhibiting any actual network happening during the opam init cli call.

This also reverts the previous commit which added a --yes in the opam init cli. This was not working and not the right solution in the end.

Related to swh/infra/sysadm-environment#3973 (closed)

Test Plan

tox


Migrated from D7255 (view on Phabricator)

Merge request reports