From 16ac24d8f7eaec8c029bc8e95d32dd0cc9d8ad92 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 11 May 2020 17:43:45 +0100 Subject: [PATCH] tests: Only test "noacpi" test when we don't build with ACPI The mmio integration test build currently doesn't use ACPI so piggyback on that test variation. Signed-off-by: Rob Bradford --- tests/integration.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index ebbaa22c5..c634db211 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -2713,7 +2713,7 @@ mod tests { }); } - #[cfg_attr(not(feature = "mmio"), test)] + #[cfg_attr(feature = "mmio", test)] fn test_vmlinux_boot_noacpi() { test_block!(tb, "", { let mut clear = ClearDiskConfig::new(); @@ -2742,16 +2742,6 @@ mod tests { aver_eq!(tb, guest.get_cpu_count().unwrap_or_default(), 1); aver!(tb, guest.get_total_memory().unwrap_or_default() > 496_000); aver!(tb, guest.get_entropy().unwrap_or_default() >= 900); - aver_eq!( - tb, - guest - .ssh_command("grep -c PCI-MSI /proc/interrupts") - .unwrap_or_default() - .trim() - .parse::() - .unwrap_or_default(), - 12 - ); let _ = child.kill(); let _ = child.wait();