mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
ci: AArch64: Enable basic virtio_vsock test case for AArch64
This commit enables the test case for testing the basic function of virtio_vsock (i.e. without the hotplug). Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
@@ -87,7 +87,7 @@ mod tests {
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
const BIONIC_IMAGE_NAME: &str = "bionic-server-cloudimg-arm64";
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-arm64";
|
||||
const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-arm64-custom";
|
||||
|
||||
const DIRECT_KERNEL_BOOT_CMDLINE: &str = "root=/dev/vda1 console=ttyS0 console=hvc0 quiet rw";
|
||||
|
||||
@@ -1816,6 +1816,9 @@ mod tests {
|
||||
guest.check_vsock(socket.as_str());
|
||||
|
||||
#[cfg(not(feature = "mmio"))]
|
||||
// AArch64 currently does not support reboot, and therefore we
|
||||
// skip the reboot test here.
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
{
|
||||
let reboot_count = guest
|
||||
.ssh_command("sudo journalctl | grep -c -- \"-- Reboot --\"")
|
||||
@@ -3565,7 +3568,6 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
fn test_virtio_vsock() {
|
||||
_test_virtio_vsock(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user