Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:15653] [gnmi] skip tests which require ports when sup is selected #16100

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/gnmi/test_gnmi_configdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def test_gnmi_configdb_incremental_01(duthosts, rand_one_dut_hostname, ptfhost):
Toggle interface admin status
'''
duthost = duthosts[rand_one_dut_hostname]
if duthost.is_supervisor_node():
pytest.skip("gnmi test relies on port data not present on supervisor card '%s'" % rand_one_dut_hostname)
file_name = "port.txt"
interface = get_first_interface(duthost)
assert interface is not None, "Invalid interface"
Expand Down Expand Up @@ -123,6 +125,8 @@ def test_gnmi_configdb_full_01(duthosts, rand_one_dut_hostname, ptfhost):
Toggle interface admin status
'''
duthost = duthosts[rand_one_dut_hostname]
if duthost.is_supervisor_node():
pytest.skip("gnmi test relies on port data not present on supervisor card '%s'" % rand_one_dut_hostname)
interface = get_first_interface(duthost)
assert interface is not None, "Invalid interface"

Expand Down
Loading