Skip to content

Commit

Permalink
Added a fix to advanced reboot script
Browse files Browse the repository at this point in the history
Details:
Added the other_vendor_nos parameter as False by default to the AdvancedReboot class,
and updated the reboot test cases correspondingly.
  • Loading branch information
AharonMalkin committed Sep 20, 2022
1 parent 871a82c commit 36e72ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/common/fixtures/advanced_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def __init__(self, request, duthost, ptfhost, localhost, tbinfo, creds, **kwargs
self.moduleIgnoreErrors = kwargs["allow_fail"] if "allow_fail" in kwargs else False
self.allowMacJump = kwargs["allow_mac_jumping"] if "allow_mac_jumping" in kwargs else False
self.advanceboot_loganalyzer = kwargs["advanceboot_loganalyzer"] if "advanceboot_loganalyzer" in kwargs else None
self.__dict__.update(kwargs)
self.other_vendor_nos = kwargs['other_vendor_nos'] if 'other_vendor_nos' in kwargs else False
self.__dict__.update(kwargs)
self.__extractTestParam()
self.rebootData = {}
self.hostMaxLen = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/platform_tests/test_advanced_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_fast_reboot(request, get_advanced_reboot, verify_dut_health,
@param get_advanced_reboot: advanced reboot test fixture
'''
advancedReboot = get_advanced_reboot(rebootType='fast-reboot',\
advanceboot_loganalyzer=advanceboot_loganalyzer, other_vendor_nos = False)
advanceboot_loganalyzer=advanceboot_loganalyzer)
advancedReboot.runRebootTestcase()


Expand Down

0 comments on commit 36e72ff

Please sign in to comment.