mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
tox: Allow passing positional arguments
Allows us to pass on arguments to run_tests and pytest after -- when executing tox. E.g.: To run all tests verbose in a test class: tox -- -v tests/test_project.py::ReviewableBranchTests Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com> Change-Id: Ibd78856c6d4053c769f3d0b6130ebc8145275f78 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353176 Reviewed-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
eda6b1ead7
commit
7b3afcab7a
2
tox.ini
2
tox.ini
@ -29,7 +29,7 @@ python =
|
|||||||
deps =
|
deps =
|
||||||
pytest
|
pytest
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
commands = {envpython} run_tests
|
commands = {envpython} run_tests {posargs}
|
||||||
setenv =
|
setenv =
|
||||||
GIT_AUTHOR_NAME = Repo test author
|
GIT_AUTHOR_NAME = Repo test author
|
||||||
GIT_COMMITTER_NAME = Repo test committer
|
GIT_COMMITTER_NAME = Repo test committer
|
||||||
|
Loading…
Reference in New Issue
Block a user