def pytest_addoption(parser):
    parser.addoption("--dataroot", action="store",type=str)


def pytest_generate_tests(metafunc):
    # This is called for every test. Only get/set command line arguments
    # if the argument is specified in the list of test "fixturenames".
    option_value = metafunc.config.option.dataroot
    if 'dataroot' in metafunc.fixturenames:
        metafunc.parametrize("dataroot", [option_value])

def pytest_addoption(parser):
    parser.addoption("--dataroot", action="store",type=str)


def pytest_generate_tests(metafunc):
    # This is called for every test. Only get/set command line arguments
    # if the argument is specified in the list of test "fixturenames".
    option_value = metafunc.config.option.dataroot
    if 'dataroot' in metafunc.fixturenames:
        metafunc.parametrize("dataroot", [option_value])

# This is called for every test. Only get/set command line arguments # if the argument is specified in the list of test "fixturenames".