-
Notifications
You must be signed in to change notification settings - Fork 741
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
Fix conftest rand_one_dut_hostname IndexError #14830
Fix conftest rand_one_dut_hostname IndexError #14830
Conversation
Updated the rand_one_dut_hostname and selected_rand_dut fixtures to set rand_one_dut_hostname_var whenever needed, specifically in the case the fixture is dynamically loaded. Removed old method of setting rand_one_dut_hostname_var.
bca7793
to
ef073b7
Compare
hi @ZhaohuiS Would you help to take a look? |
Duplicated with #14935 |
@dayouliu1 did you verify your changes by running nightly test? What's test results for |
@ZhaohuiS Yes, the above tests passes from the results I see |
@dayouliu1 please paste the test result, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Updated the rand_one_dut_hostname and selected_rand_dut fixtures to set rand_one_dut_hostname_var whenever needed, specifically in the case the fixture is dynamically loaded. Removed old method of setting rand_one_dut_hostname_var.
Updated the rand_one_dut_hostname and selected_rand_dut fixtures to set rand_one_dut_hostname_var whenever needed, specifically in the case the fixture is dynamically loaded. Removed old method of setting rand_one_dut_hostname_var.
Can this PR be backported to 202405 please? Just for consistency. |
Updated the rand_one_dut_hostname and selected_rand_dut fixtures to set rand_one_dut_hostname_var whenever needed, specifically in the case the fixture is dynamically loaded. Removed old method of setting rand_one_dut_hostname_var.
Cherry-pick PR to 202405: #16047 |
Updated the rand_one_dut_hostname and selected_rand_dut fixtures to set rand_one_dut_hostname_var whenever needed, specifically in the case the fixture is dynamically loaded. Removed old method of setting rand_one_dut_hostname_var.
Description of PR
Summary:
Fixes #14829
Type of change
Back port request
Approach
What is the motivation for this PR?
Fix issue where
rand_one_dut_hostname
fixture was not being properly set when the fixture is loaded dynamically, like in the case forecmp/test_ecmp_hash_seed_value
. Thecustom_fixture
plugin will dynamically addrand_one_dut_hostname
, but the current method of settingrand_one_dut_hostname_var
does not account for this and so it is not set.How did you do it?
Set the global variable within the
rand_one_dut_hostname
fixture directly.How did you verify/test it?
Ran and verified test suite
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation