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 <anrayabh@microsoft.com>
This commit is contained in:
Anirudh Rayabharam 2025-08-23 14:52:10 +00:00 committed by Rob Bradford
parent a51998605a
commit 6e002defe2

View file

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