Skip to content

Commit

Permalink
Fix vstest
Browse files Browse the repository at this point in the history
Signed-off-by: bingwang <[email protected]>
  • Loading branch information
bingwang-ms committed Jun 21, 2022
1 parent 93e268e commit c8c8d60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def mirror_acl_table(self, dvs_acl):
dvs_acl.verify_acl_table_count(0)

@pytest.fixture(params=['ingress', 'egress'])
def pfcwd_acl_table(self, dvs_acl):
def pfcwd_acl_table(self, dvs_acl, request):
try:
dvs_acl.create_acl_table(PFCWD_TABLE_NAME, PFCWD_TABLE_TYPE, PFCWD_BIND_PORTS, request.params)
yield dvs_acl.get_acl_table_ids(1)[0], request.params
dvs_acl.create_acl_table(PFCWD_TABLE_NAME, PFCWD_TABLE_TYPE, PFCWD_BIND_PORTS, request.param)
yield dvs_acl.get_acl_table_ids(1)[0], request.param
finally:
dvs_acl.remove_acl_table(PFCWD_TABLE_NAME)
dvs_acl.verify_acl_table_count(0)
Expand Down

0 comments on commit c8c8d60

Please sign in to comment.