Skip to content

Commit

Permalink
[202205] add missing part in [cherry pick master PR] Improvising pre_…
Browse files Browse the repository at this point in the history
…checks for test_reload config (#8891)

#8843 missed to cherry-pick change for usage of enum_rand_one_per_hwsku_hostname

regression:

>       duthost = duthosts[rand_one_dut_hostname]
E       NameError: global name 'rand_one_dut_hostname' is not defined
  • Loading branch information
wenyiz2021 authored Jul 10, 2023
1 parent a066553 commit 9cf267a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/platform_tests/test_reload_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_reload_configuration(duthosts, enum_rand_one_per_hwsku_hostname,
"""
@summary: This test case is to reload the configuration and check platform status
"""
duthost = duthosts[rand_one_dut_hostname]
duthost = duthosts[enum_rand_one_per_hwsku_hostname]
interfaces = conn_graph_facts["device_conn"][duthost.hostname]
asic_type = duthost.facts["asic_type"]

Expand Down Expand Up @@ -81,7 +81,7 @@ def test_reload_configuration_checks(duthosts, enum_rand_one_per_hwsku_hostname,
"""
@summary: This test case is to test various system checks in config reload
"""
duthost = duthosts[rand_one_dut_hostname]
duthost = duthosts[enum_rand_one_per_hwsku_hostname]

if not config_force_option_supported(duthost):
return
Expand Down

0 comments on commit 9cf267a

Please sign in to comment.