From 7dd5a6fc1255476e9474ac764039aea22d72cb60 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Wed, 30 Oct 2019 16:44:30 +0100 Subject: [PATCH] tests: Remove unused adoptions Signed-off-by: Robert Baldyga --- test/functional/tests/conftest.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/test/functional/tests/conftest.py b/test/functional/tests/conftest.py index 3f1b9bd..97eaffc 100644 --- a/test/functional/tests/conftest.py +++ b/test/functional/tests/conftest.py @@ -27,15 +27,6 @@ except ImportError: pass -pytest_options = {} - - -@pytest.fixture(scope="session", autouse=True) -def get_pytest_options(request): - pytest_options["remote"] = request.config.getoption("--remote") - pytest_options["branch"] = request.config.getoption("--repo-tag") - - def pytest_runtest_setup(item): # There should be dut config file added to config package and # pytest should be executed with option --dut-config=conf_name'. @@ -121,20 +112,10 @@ def pytest_addoption(parser): parser.addoption("--dut-config", action="store", default="None") parser.addoption("--log-path", action="store", default=f"{os.path.join(os.path.dirname(__file__), '../results')}") - parser.addoption("--remote", action="store", default="origin") - parser.addoption("--repo-tag", action="store", default="master") parser.addoption("--force-reinstall", action="store", default="False") # TODO: investigate whether it is possible to pass the last param as bool -def get_remote(): - return pytest_options["remote"] - - -def get_branch(): - return pytest_options["branch"] - - def unmount_cas_devices(): output = TestRun.executor.run("cat /proc/mounts | grep cas") # If exit code is '1' but stdout is empty, there is no mounted cas devices