tests: Remove unused adoptions
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
01cd284a48
commit
7dd5a6fc12
@ -27,15 +27,6 @@ except ImportError:
|
|||||||
pass
|
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):
|
def pytest_runtest_setup(item):
|
||||||
# There should be dut config file added to config package and
|
# There should be dut config file added to config package and
|
||||||
# pytest should be executed with option --dut-config=conf_name'.
|
# 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("--dut-config", action="store", default="None")
|
||||||
parser.addoption("--log-path", action="store",
|
parser.addoption("--log-path", action="store",
|
||||||
default=f"{os.path.join(os.path.dirname(__file__), '../results')}")
|
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")
|
parser.addoption("--force-reinstall", action="store", default="False")
|
||||||
# TODO: investigate whether it is possible to pass the last param as bool
|
# 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():
|
def unmount_cas_devices():
|
||||||
output = TestRun.executor.run("cat /proc/mounts | grep cas")
|
output = TestRun.executor.run("cat /proc/mounts | grep cas")
|
||||||
# If exit code is '1' but stdout is empty, there is no mounted cas devices
|
# If exit code is '1' but stdout is empty, there is no mounted cas devices
|
||||||
|
Loading…
Reference in New Issue
Block a user