Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We pinned pytest because usage of custom args stopped to work with pytest 3.7.4. At the end it was a configuration issue: we were missing to specify which is the pytest root dir. Adding a `[pytest]` section in the `tox.ini` file permits pytest to discover the right root dir and so to use custom arguments. ### Tests Without the pin and before this patch tests were failing with: ``` ERROR: usage: test_runner.py [options] [file_or_dir] [file_or_dir] [...] test_runner.py: error: unrecognized arguments: --tests-log-file=/tmp//...eu-west-1.log --output-dir=/tmp/...eu-west-1 --key-name=... --key-path=...usai-common.pem --stackname-suffix --tests-config-file=/tmp/...tests_config.yaml --regions eu-west-1 --ami-owner ... --vpc-stack integ-tests-vpc-...-360 --no-delete ... inifile: None rootdir: .../aws-parallelcluster/tests/integration-tests/tests ``` Now tests are executed correctly. ### References * pytest-dev/pytest#11134 * https://docs.pytest.org/en/stable/reference/customize.html#finding-the-rootdir Signed-off-by: Enrico Usai <usai@amazon.com>
- Loading branch information