[lvm-devel] master - tests: drop unneeded cat
Zdenek Kabelac
zkabelac at sourceware.org
Mon Jul 10 12:27:03 UTC 2017
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2d96b758e4d127d144fdeb92b487cdc5f86de340
Commit: 2d96b758e4d127d144fdeb92b487cdc5f86de340
Parent: eba96a9720add0120b029a34fe8641297cd1e904
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Thu Jul 6 19:42:15 2017 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Jul 10 14:23:53 2017 +0200
tests: drop unneeded cat
---
test/shell/snapshot-autoumount-dmeventd.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/shell/snapshot-autoumount-dmeventd.sh b/test/shell/snapshot-autoumount-dmeventd.sh
index 5ef3969..8e2781e 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
More information about the lvm-devel
mailing list