Skip to content
Snippets Groups Projects

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

Closed by Phabricator Migration userPhabricator Migration user 3 years ago (Feb 25, 2022 9:24am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading