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:
Michael Zhao
2020-10-30 08:36:52 +08:00
committed by Rob Bradford
parent cb88ceeae8
commit 4606f0f28a
2 changed files with 2 additions and 4 deletions

View File

@@ -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);