Skip to content

Commit

Permalink
Merge pull request #2079 from sathnaga/serial_supp_reboot
Browse files Browse the repository at this point in the history
Add serial session support for VM reboot
  • Loading branch information
Balamuruhan S authored May 17, 2019
2 parents 8823c81 + 8d595b1 commit ef129ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virttest/libvirt_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2384,6 +2384,8 @@ def reboot(self, session=None, method="shell", nic_index=0, timeout=240,
session.close()

error_context.context("logging in after reboot", logging.info)
if serial:
return self.wait_for_serial_login(timeout=timeout)
return self.wait_for_login(nic_index, timeout=timeout)

def screendump(self, filename, debug=False):
Expand Down

0 comments on commit ef129ab

Please sign in to comment.