Skip to content

Commit

Permalink
Bridge UT clean-up
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Kokhan <andriy.kokhan@gmail.com>
  • Loading branch information
andriy-kokhan committed Aug 9, 2023
1 parent 45b9e45 commit 462a53c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/ut/test_bridge_ut.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ def skip_all(testbed_instance):
pytest.skip("invalid for \"{}\" testbed".format(testbed.name))


@pytest.fixture(autouse=True)
def on_prev_test_failure(prev_test_failed, npu):
if prev_test_failed:
npu.reset()


@pytest.fixture(scope="module")
def sai_bport_obj(npu):
bport_oid = npu.dot1q_bp_oids[0]
Expand Down Expand Up @@ -64,7 +58,8 @@ def test_set_attr(self, npu, dataplane, attr, attr_value):
attr_value = self.state.get(attr)
if attr_value is None:
pytest.skip("no default value")
npu.set(npu.dot1q_br_oid, [attr, attr_value])
status = npu.set(npu.dot1q_br_oid, [attr, attr_value], False)
npu.assert_status_success(status)
assert npu.get(npu.dot1q_br_oid, [attr]).value() == attr_value


Expand Down

0 comments on commit 462a53c

Please sign in to comment.