Skip to content

Commit

Permalink
invoke reboot in b/g with stdin & stdout not in use with explicit exit
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed Oct 28, 2021
1 parent c546be7 commit 32cda4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tacacs/test_ro_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def do_reboot(duthost, localhost, dutip, rw_user, rw_pass):
# Regular reboot command would not work, as it would try to
# collect show tech, which will fail in RO state.
#
chk_ssh_remote_run(localhost, dutip, rw_user, rw_pass, "sudo /sbin/reboot")
chk_ssh_remote_run(localhost, dutip, rw_user, rw_pass, "nohup sudo /sbin/reboot &>/dev/null & exit")
try:
localhost.wait_for(host=duthost.mgmt_ip, port=22, state="stopped", delay=5, timeout=60)
break
Expand Down

0 comments on commit 32cda4e

Please sign in to comment.