Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ansible/roles/test/files/ptftests/advanced-reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(self):
self.check_param('dut_hostname', '', required=True)
self.check_param('reboot_limit_in_seconds', 30, required=False)
self.check_param('reboot_type', 'fast-reboot', required=False)
self.check_param('graceful_limit', 180, required=False)
self.check_param('graceful_limit', 240, required=False)
self.check_param('portchannel_ports_file', '', required=True)
self.check_param('vlan_ports_file', '', required=True)
self.check_param('ports_file', '', required=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/platform_tests/args/cont_warm_reboot_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def add_cont_warm_reboot_args(parser):
"--continuous_reboot_count",
action="store",
type=int,
default=5,
default=3,
help="Number of iterations of warm-reboot",
)

Expand Down
2 changes: 2 additions & 0 deletions tests/platform_tests/test_cont_warm_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ def create_test_report(self):
with open(report_file, "w") as report_file:
json.dump(test_report, report_file, indent=4)

pytest_assert(self.test_failures == 0, "Continuous reboot test failed {}/{} times".\
format(self.test_failures, self.reboot_count))

def wait_until_uptime(self):
logging.info("Wait until DUT uptime reaches {}s".format(self.continuous_reboot_delay))
Expand Down