-
Notifications
You must be signed in to change notification settings - Fork 730
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
[T2 chassis] platform tests that uses pdu_controller to run on sup for chassis #8646
Conversation
@arlakshm can you please review? |
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.. can please confirm if these test work on single asic pizzaboxes?
thanks @arlakshm , I verified this on single-asic linecard as well |
@wenyiz2021 PR conflicts with 202205 branch |
What is the motivation for this PR? Skip condition for 7215 and 1031 failed in this case due to #8646 How did you do it? Modify skip condition. How did you verify/test it? Run tests. Signed-off-by: Yaqiang Zhu <[email protected]>
…onic-net#9085) What is the motivation for this PR? Skip condition for 7215 and 1031 failed in this case due to sonic-net#8646 How did you do it? Modify skip condition. How did you verify/test it? Run tests. Signed-off-by: Yaqiang Zhu <[email protected]>
…9085) (#9149) What is the motivation for this PR? Manually cherry-pick and resolve conflicts of this PR: #9085 Skip condition for 7215 and 1031 failed in this case due to #8646 How did you do it? Modify skip condition. How did you verify/test it? Run tests. Signed-off-by: Yaqiang Zhu <[email protected]>
…on sup for chassis (sonic-net#8646) * pdu_controller runs on SUP if chassis, else choose a random dut * corresponding platform tests that use pdu_controller also gets update * refactor out test_power_off_reboot.py
test_power_off_reboot will fail due to sonic-net#8646 This PR is to fix that and sync setting for testbed-str2-pikez-acs-1 from internal-202205
…on sup for chassis (sonic-net#8646) * pdu_controller runs on SUP if chassis, else choose a random dut * corresponding platform tests that use pdu_controller also gets update * refactor out test_power_off_reboot.py
…t#9085) What is the motivation for this PR? Skip condition for 7215 and 1031 failed in this case due to sonic-net#8646 How did you do it? Modify skip condition. How did you verify/test it? Run tests. Signed-off-by: Yaqiang Zhu <[email protected]>
Description of PR
utilities.py: implement a function
get_sup_node_or_random_node
for chassis whose pdu info is only avail on sup.Note that here we don't use
enum_supervisor_dut_hostname
, because platform_tests/conftest.py have a autouse fixtureskip_on_simx
that makes all platform tests use rand_one_dut_hostname.accomondate other platform tests who uses fixture pdu_controller also need same function implementation and usage.
refactor out
test_power_off_reboot
fromtest_reboot.py
, this whole file has autosue fixtureteardown_module
base onenum_rand_one_per_hwsku_hostname
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
accomodate for T2 chassis
How did you do it?
How did you verify/test it?
run on Arista chassis
Any platform specific information?
this will not impact other platforms
Supported testbed topology if it's a new test case?
Documentation