Skip to content

Commit

Permalink
Skip brcm teardown assertion (#1423)
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Wang <yangwang1@microsoft.com>
  • Loading branch information
RyoYang authored Mar 3, 2022
1 parent 07c00cf commit fe2b9e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ptf/sai_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit fe2b9e3

Please sign in to comment.