Skip to content

Commit

Permalink
Skip brcm teardown assertion (opencomputeproject#1423) (opencomputepr…
Browse files Browse the repository at this point in the history
…oject#1428)

Signed-off-by: Yang Wang <yangwang1@microsoft.com>
  • Loading branch information
RyoYang committed Mar 14, 2022
1 parent ddaf784 commit 0c3717c
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 0c3717c

Please sign in to comment.