summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kutik <daniel.kutik@lavawerk.com>2022-11-27 08:25:37 +0100
committerMike Frysinger <vapier@google.com>2022-11-27 11:35:46 +0000
commit7b3afcab7a746a2bd568b3df590b7bba4f9a4d23 (patch)
tree874f0748587a50fca5ed86d4ac4c80ba3f334cf7
parenteda6b1ead73e13aa15226614f16e7e748e40c118 (diff)
downloadgit-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.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index feb328e0..9a8b3fc9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -29,7 +29,7 @@ python =
29deps = 29deps =
30 pytest 30 pytest
31 pytest-timeout 31 pytest-timeout
32commands = {envpython} run_tests 32commands = {envpython} run_tests {posargs}
33setenv = 33setenv =
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