From 7b3afcab7a746a2bd568b3df590b7bba4f9a4d23 Mon Sep 17 00:00:00 2001 From: Daniel Kutik Date: Sun, 27 Nov 2022 08:25:37 +0100 Subject: [PATCH] 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 Change-Id: Ibd78856c6d4053c769f3d0b6130ebc8145275f78 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353176 Reviewed-by: Mike Frysinger --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index feb328e0..9a8b3fc9 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,7 @@ python = deps = pytest pytest-timeout -commands = {envpython} run_tests +commands = {envpython} run_tests {posargs} setenv = GIT_AUTHOR_NAME = Repo test author GIT_COMMITTER_NAME = Repo test committer