diff --git a/tests/common/plugins/sanity_check/__init__.py b/tests/common/plugins/sanity_check/__init__.py index 2d77106769b..4290ddf917f 100644 --- a/tests/common/plugins/sanity_check/__init__.py +++ b/tests/common/plugins/sanity_check/__init__.py @@ -19,15 +19,9 @@ SUPPORTED_CHECKS = checks.CHECK_ITEMS DUT_CHEK_LIST = ['core_dump_check_pass', 'config_db_check_pass'] CACHE_LIST = ['core_dump_check_pass', 'config_db_check_pass', - 'pre_sanity_check_failed', 'post_sanity_check_failed', 'pre_sanity_recovered', 'post_sanity_recovered'] -def reset_cache_list(request): - for item in CACHE_LIST: - request.config.cache.set(item, None) - - def pytest_sessionfinish(session, exitstatus): pre_sanity_failed = session.config.cache.get("pre_sanity_check_failed", None) @@ -170,8 +164,6 @@ def log_custom_msg(request): logger.debug("customMsgDict: {}".format(customMsgDict)) item.user_properties.append(('CustomMsg', json.dumps(customMsgDict))) - reset_cache_list(request) - @pytest.fixture(scope="module") def sanity_check_full(localhost, duthosts, request, fanouthosts, nbrhosts, tbinfo):