From 2baf5ab80d0885dd58a3e51238de746b1dec5c97 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 4 Mar 2020 16:36:14 +0000 Subject: [PATCH] tests: Simplfy the shm region check There is no need to spawn a subshell in this case as grep can open the file directly. Signed-off-by: Rob Bradford --- tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 80075f8a6..14d631d60 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -691,7 +691,7 @@ mod tests { cache_size: Option, ) -> Result { let shm_region = self - .ssh_command("sudo -E bash -c 'cat /proc/iomem' | grep virtio-pci-shm")? + .ssh_command("sudo grep virtio-pci-shm /proc/iomem")? .trim() .to_string();