diff --git a/tests/platform_tests/fwutil/conftest.py b/tests/platform_tests/fwutil/conftest.py index b8045f457a2..dca969cecdc 100644 --- a/tests/platform_tests/fwutil/conftest.py +++ b/tests/platform_tests/fwutil/conftest.py @@ -24,7 +24,7 @@ def check_path_exists(duthost, path): def pytest_generate_tests(metafunc): val = metafunc.config.getoption('--fw-pkg') - if 'fw_pkg_name' in metafunc.fixturenames and val is not None: + if 'fw_pkg_name' in metafunc.fixturenames: metafunc.parametrize('fw_pkg_name', [val], scope="module")