Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

molecule verify -s builder fails #2418

Closed
t2d opened this issue Oct 8, 2017 · 3 comments
Closed

molecule verify -s builder fails #2418

t2d opened this issue Oct 8, 2017 · 3 comments

Comments

@t2d
Copy link
Contributor

t2d commented Oct 8, 2017

Bug

Description

I tried to work on #1637, but when I try to build the debian packages, the verify step fails

Steps to Reproduce

molecule --debug verify -s builder
--> Test matrix
    
└── builder
    └── verify
--> Inventory /home/t/Code/securedrop/molecule/builder/.molecule/../../../install_files/ansible-base/group_vars linked to /home/t/Code/securedrop/molecule/builder/.molecule/group_vars
--> Scenario: 'builder'
--> Action: 'verify'
--> Executing Testinfra tests found in /home/t/Code/securedrop/molecule/builder/tests/...
DEBUG: ANSIBLE ENVIRONMENT
---
ANSIBLE_ACTION_PLUGINS: ../../install_files/ansible-base/action_plugins
ANSIBLE_CONFIG: /home/t/Code/securedrop/molecule/builder/.molecule/ansible.cfg
ANSIBLE_FILTER_PLUGINS: /usr/local/lib/python2.7/dist-packages/molecule/provisioner/ansible/plugins/filters:/home/t/Code/securedrop/plugins/filters:/home/t/Code/securedrop/molecule/builder/.molecule/plugins/filters
ANSIBLE_LIBRARY: /usr/local/lib/python2.7/dist-packages/molecule/provisioner/ansible/plugins/libraries:/home/t/Code/securedrop/library:/home/t/Code/securedrop/molecule/builder/.molecule/library
ANSIBLE_ROLES_PATH: /home/t/Code:/home/t/Code/securedrop/molecule/builder/.molecule/roles:/home/t/Code/securedrop/install_files/ansible-base/roles

DEBUG: MOLECULE ENVIRONMENT
---
MOLECULE_DEBUG: 'True'
MOLECULE_DEPENDENCY_NAME: galaxy
MOLECULE_DRIVER_NAME: docker
MOLECULE_EPHEMERAL_DIRECTORY: /home/t/Code/securedrop/molecule/builder/.molecule
MOLECULE_FILE: /home/t/Code/securedrop/molecule/builder/molecule.yml
MOLECULE_INSTANCE_CONFIG: /home/t/Code/securedrop/molecule/builder/.molecule/instance_config.yml
MOLECULE_INVENTORY_FILE: /home/t/Code/securedrop/molecule/builder/.molecule/ansible_inventory.yml
MOLECULE_LINT_NAME: yamllint
MOLECULE_PROVISIONER_NAME: ansible
MOLECULE_SCENARIO_DIRECTORY: /home/t/Code/securedrop/molecule/builder
MOLECULE_SCENARIO_NAME: builder
MOLECULE_VERIFIER_NAME: testinfra

DEBUG: COMMAND
/usr/local/bin/py.test --debug --connection=ansible --ansible-inventory=/home/t/Code/securedrop/molecule/builder/.molecule/ansible_inventory.yml -n auto /home/t/Code/securedrop/molecule/builder/tests/test_ossec_packages.py /home/t/Code/securedrop/molecule/builder/tests/test_securedrop_deb_package.py /home/t/Code/securedrop/molecule/builder/tests/test_build_dependencies.py /home/t/Code/securedrop/molecule/builder/tests/test_legacy_paths.py
usage: py.test [options] [file_or_dir] [file_or_dir] [...]
py.test: error: unrecognized arguments: -n
  inifile: /home/t/Code/securedrop/setup.cfg
  rootdir: /home/t/Code/securedrop
@t2d
Copy link
Contributor Author

t2d commented Oct 8, 2017

Looks like this was introduced in 9cf90da during #2218

@ghost
Copy link

ghost commented Oct 8, 2017

The -n option is introduced by pytest-xdist which should be installed when you ran pytest -r securedrop/requirements/develop-requirements.txt. If you have it installed already, could you pip list installed to show which version is available ?

@t2d
Copy link
Contributor Author

t2d commented Oct 9, 2017

Thank you for pointing this out. Guess I didn't take enough time to read the docs properly.

@t2d t2d closed this as completed Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant