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 <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-12-18 10:39:22 +00:00
parent 14af74cb5b
commit 2e87d5ae02

View File

@ -1054,8 +1054,9 @@ mod tests {
dax: bool,
cache_size: Option<u64>,
) -> Result<bool, Error> {
// 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();