Skip to content

Commit

Permalink
[ansible] Increase DUT reboot command timeout (#1558)
Browse files Browse the repository at this point in the history
10 sec default timeout for some devices, is not enough to complete the
reboot process. This PR increases the time out to reboot task timeout.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
  • Loading branch information
tahmed-dev authored Apr 10, 2020
1 parent e3d1946 commit d808e13
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -995,7 +995,7 @@ def reboot_dut(self):
time.sleep(self.reboot_delay)

self.log("Rebooting remote side")
stdout, stderr, return_code = self.dut_connection.execCommand("sudo " + self.reboot_type)
stdout, stderr, return_code = self.dut_connection.execCommand("sudo " + self.reboot_type, timeout=self.task_timeout)
if stdout != []:
self.log("stdout from %s: %s" % (self.reboot_type, str(stdout)))
if stderr != []:
Expand Down

0 comments on commit d808e13

Please sign in to comment.