HomeSoftware Heritage

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

Description

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 T3973

Details

Provenance
ardumontAuthored on Feb 25 2022, 10:06 AM
ardumontPushed on Feb 25 2022, 10:24 AM
Differential Revision
D7255: loader/opam/tests: Do not run actual opam init command call
Parents
rDLDBASEec6591f6a90f: opam: Allow build to run the opam init completely
Branches
Unknown
Tags
Unknown
References
tag: v2.5.4
Tasks
T3973: Deploy swh.deposit v0.17
Build Status
Buildable 27162
Build 42486: test-and-buildJenkins console · Jenkins