ansible / pytest-ansible

A pytest plugin that enables the use of ansible in tests, enables the use of pytest as a collection unit test runner, and exposes molecule scenarios through a pytest fixture.

Home Page:https://ansible.readthedocs.io/projects/pytest-ansible/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MoleculeScenario doesn't support MOLECULE_OPTS

evgeni opened this issue · comments

When using the simple molecule_scenario fixture, that generates MoleculeScenario entries, there is no way to pass --parallel or similar flags via MOLECULE_OPTS

Looking at the code MoleculeItem does support that:

# We append the additional options to molecule call, allowing user to
# control how molecule is called by pytest-molecule
opts = os.environ.get("MOLECULE_OPTS")
if opts:
cmd.extend(shlex.split(opts))

But that is not used in MoleculeScenario :(