mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
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 <robert.bradford@intel.com>
This commit is contained in:
parent
97affbebfe
commit
2baf5ab80d
@ -691,7 +691,7 @@ mod tests {
|
||||
cache_size: Option<u64>,
|
||||
) -> Result<bool, Error> {
|
||||
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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user