# HG changeset patch # User RhodeCode Admin # Date 2023-02-17 19:23:44 # Node ID 78ea273c36839b0d6613081371dc9c5567ed6226 # Parent 63ff36b5b6dcf188200b65c74e6a544ea3573fe8 tests: make repeat flag unique for vcsserver sources diff --git a/vcsserver/tests/conftest.py b/vcsserver/tests/conftest.py --- a/vcsserver/tests/conftest.py +++ b/vcsserver/tests/conftest.py @@ -16,13 +16,12 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import socket - import pytest def pytest_addoption(parser): parser.addoption( - '--repeat', type=int, default=100, + '--perf-repeat-vcs', type=int, default=100, help="Number of repetitions in performance tests.") @@ -34,7 +33,7 @@ def repeat(request): Slower calls may divide it by 10 or 100. It is chosen in a way so that the tests are not too slow in our default test suite. """ - return request.config.getoption('--repeat') + return request.config.getoption('--perf-repeat-vcs') @pytest.fixture(scope='session')