From 6e002defe2c9baf1df08179c91db73eedaa49889 Mon Sep 17 00:00:00 2001 From: Anirudh Rayabharam Date: Sat, 23 Aug 2025 14:52:10 +0000 Subject: [PATCH] tests: remove redundant arch check in bzimage test test_direct_kernel_boot_bzimage runs only on x86, so the cfg!() branch for selecting grep_cmd is unnecessary. Remove it for clarity. Signed-off-by: Anirudh Rayabharam --- tests/integration.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index 13e612485..4e74cf0fc 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -3342,11 +3342,7 @@ mod common_parallel { assert_eq!(guest.get_cpu_count().unwrap_or_default(), 1); assert!(guest.get_total_memory().unwrap_or_default() > 480_000); - let grep_cmd = if cfg!(target_arch = "x86_64") { - "grep -c PCI-MSI /proc/interrupts" - } else { - "grep -c ITS-PCI-MSIX /proc/interrupts" - }; + let grep_cmd = "grep -c PCI-MSI /proc/interrupts"; assert_eq!( guest .ssh_command(grep_cmd)