// Always wait for remote host command to succeed, because it is necessary to
// run benchmarks.
stdout, _ = self.RemoteCommand("hostname", suppress_warning=True)
if self.bootable_time is None:
self.bootable_time = time.time()
if self.hostname is None:
self.hostname = stdout.rstrip()
After Change
def WaitForBootCompletion(self):
Waits until VM is has booted.
to_wait_for = [self._WaitForWinRmCommand]
if FLAGS.cluster_boot_test_rdp_port_listening:
to_wait_for.append(self._WaitForRdpPort)
vm_util.RunParallelThreads([(method, [], {}) for method in to_wait_for], 2)
@vm_util.Retry(log_errors=False, poll_interval=1, timeout=2400)
def _WaitForRdpPort(self):