From 2e87d5ae02dd3b49715cdeae60d51979a96dfbd6 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 18 Dec 2020 10:39:22 +0000 Subject: [PATCH] tests: integration: Check different virtio-fs SHM region names Depending on the kernel version the SHM region has a different name. Signed-off-by: Rob Bradford --- tests/integration.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 5fcef6b13..294be3399 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -1054,8 +1054,9 @@ mod tests { dax: bool, cache_size: Option, ) -> Result { + // SHM region is called different things depending on kernel let shm_region = self - .ssh_command("sudo grep virtio-pci-shm /proc/iomem")? + .ssh_command("sudo grep 'virtio[0-9]\\|virtio-pci-shm' /proc/iomem")? .trim() .to_string();