MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / wait_for_ssh

Method wait_for_ssh

test_infra/src/lib.rs:1339–1347  ·  view source on GitHub ↗

Waits until SSH to the guest becomes available using the [default guest authentication] and the default guest IP. [default guest authentication]: default_guest_auth

(&self, timeout: Duration)

Source from the content-addressed store, hash-verified

1337 ///
1338 /// [default guest authentication]: default_guest_auth
1339 pub fn wait_for_ssh(&self, timeout: Duration) -> Result<(), WaitForSshError> {
1340 wait_for_ssh(
1341 "true",
1342 &default_guest_auth(),
1343 &self.network.guest_ip0,
1344 timeout,
1345 )
1346 .map(|_| ())
1347 }
1348
1349 /// Waits until the provided command succeeds via SSH on the guest using the
1350 /// [default guest authentication] and the default guest IP.

Callers 7

test_vfioFunction · 0.80
test_ovs_dpdkFunction · 0.80
_test_live_migrationFunction · 0.80
_test_live_migration_tcpFunction · 0.80

Calls 3

wait_for_sshFunction · 0.85
default_guest_authFunction · 0.85
mapMethod · 0.45

Tested by 7

test_vfioFunction · 0.64
test_ovs_dpdkFunction · 0.64
_test_live_migrationFunction · 0.64
_test_live_migration_tcpFunction · 0.64