mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
tests: Make migration test case X86 only
Set the test case test_snapshot_restore X86 only, instead of excluding it from test command line. The command line option was added because we used to support migration with Virtio-MMIO, but not Virtio-PCI. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
parent
cb88ceeae8
commit
4606f0f28a
@ -197,7 +197,7 @@ sudo bash -c "echo 10 > /sys/kernel/mm/ksm/sleep_millisecs"
|
||||
sudo bash -c "echo 1 > /sys/kernel/mm/ksm/run"
|
||||
|
||||
export RUST_BACKTRACE=1
|
||||
time cargo test --no-default-features --features "integration_tests,kvm" "tests::parallel::$@" -- --skip test_snapshot_restore
|
||||
time cargo test --no-default-features --features "integration_tests,kvm" "tests::parallel::$@"
|
||||
RES=$?
|
||||
|
||||
# Tear vhost_user_net test network down
|
||||
|
@ -5247,6 +5247,7 @@ mod tests {
|
||||
// through each ssh command. There's no need to perform a dedicated test to
|
||||
// verify the migration went well for virtio-net.
|
||||
#[test]
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
fn test_snapshot_restore() {
|
||||
let mut focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
||||
let guest = Guest::new(&mut focal);
|
||||
@ -5254,10 +5255,7 @@ mod tests {
|
||||
workload_path.push("workloads");
|
||||
|
||||
let mut kernel_path = workload_path;
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
kernel_path.push("bzImage");
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
kernel_path.push("Image");
|
||||
|
||||
let api_socket = temp_api_path(&guest.tmp_dir);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user