From 2d96b758e4d127d144fdeb92b487cdc5f86de340 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 6 Jul 2017 19:42:15 +0200 Subject: [PATCH] tests: drop unneeded cat --- test/shell/snapshot-autoumount-dmeventd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/shell/snapshot-autoumount-dmeventd.sh b/test/shell/snapshot-autoumount-dmeventd.sh index 5ef3969c5..8e2781e4d 100644 --- a/test/shell/snapshot-autoumount-dmeventd.sh +++ b/test/shell/snapshot-autoumount-dmeventd.sh @@ -38,7 +38,7 @@ mount -o errors=remount-ro "$DM_DEV_DIR/mapper/$vg-snap" "$mntdir" test "$(dmsetup info -c --noheadings -o open $vg-snap)" -eq 1 -cat /proc/mounts | grep "$mntdir" +grep "$mntdir" /proc/mounts # overfill 4M snapshot (with metadata) not dd if=/dev/zero of="$mntdir/file$1" bs=1M count=4 conv=fdatasync @@ -52,6 +52,6 @@ for i in {1..100}; do test "$(dmsetup info -c --noheadings -o open $vg-snap)" -eq 0 && break done -cat /proc/mounts | not grep "$mntdir" +not grep "$mntdir" /proc/mounts vgremove -f $vg -- 2.43.5