diff options
author | Daniel Kutik <daniel.kutik@lavawerk.com> | 2022-11-27 08:25:37 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2022-11-27 11:35:46 +0000 |
commit | 7b3afcab7a746a2bd568b3df590b7bba4f9a4d23 (patch) | |
tree | 874f0748587a50fca5ed86d4ac4c80ba3f334cf7 | |
parent | eda6b1ead73e13aa15226614f16e7e748e40c118 (diff) | |
download | git-repo-7b3afcab7a746a2bd568b3df590b7bba4f9a4d23.tar.gz |
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>
-rw-r--r-- | tox.ini | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ python = | |||
29 | deps = | 29 | deps = |
30 | pytest | 30 | pytest |
31 | pytest-timeout | 31 | pytest-timeout |
32 | commands = {envpython} run_tests | 32 | commands = {envpython} run_tests {posargs} |
33 | setenv = | 33 | setenv = |
34 | GIT_AUTHOR_NAME = Repo test author | 34 | GIT_AUTHOR_NAME = Repo test author |
35 | GIT_COMMITTER_NAME = Repo test committer | 35 | GIT_COMMITTER_NAME = Repo test committer |