From 0c3717cb569455cef24e5f52b1e7ea967a448cb1 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Thu, 3 Mar 2022 17:26:38 +0800 Subject: [PATCH] Skip brcm teardown assertion (#1423) (#1428) Signed-off-by: Yang Wang --- ptf/sai_base_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ptf/sai_base_test.py b/ptf/sai_base_test.py index 2b59001a7..dfcf4c68f 100644 --- a/ptf/sai_base_test.py +++ b/ptf/sai_base_test.py @@ -339,10 +339,11 @@ def tearDown(self): sai_thrift_clear_port_stats(self.client, port) sai_thrift_set_port_attribute( self.client, port, port_vlan_id=0) - + #Todo: Remove this condition after brcm's remove_switch issue fixed + if get_platform() == 'brcm': + return self.assertTrue(self.verifyNumberOfAvaiableResources( self.switch_resources, debug=False)) - finally: super(SaiHelperBase, self).tearDown()