Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/common/plugins/sanity_check/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _update_check_items(old_items, new_items, supported_items):


@pytest.fixture(scope="module", autouse=True)
def sanity_check(localhost, duthost, request, fanouthosts):
def sanity_check(localhost, duthost, request, fanouthosts, testbed):
logger.info("Start pre-test sanity check")

skip_sanity = False
Expand Down Expand Up @@ -81,6 +81,10 @@ def sanity_check(localhost, duthost, request, fanouthosts):
items_array=str(items).split(',')
check_items = _update_check_items(check_items, items_array, constants.SUPPORTED_CHECK_ITEMS)

# ignore BGP check for particular topology type
if testbed['topo']['type'] == 'ptf' and 'bgp' in check_items:
check_items.remove('bgp')

logger.info("Sanity check settings: skip_sanity=%s, check_items=%s, allow_recover=%s, recover_method=%s, post_check=%s" % \
(skip_sanity, check_items, allow_recover, recover_method, post_check))

Expand Down