Gitweb:
https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b45ca523ecbba006d29...
Commit: b45ca523ecbba006d2982ae085140c69edbe084e
Parent: 51237cb5047a93382f8d239e9aa9d3899154300f
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Thu Jun 29 11:56:47 2017 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Jun 29 22:23:17 2017 +0200
tests: check.sh eliminate useless cat
Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
---
test/lib/check.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/lib/check.sh b/test/lib/check.sh
index 64019da..a43aef7 100644
--- a/test/lib/check.sh
+++ b/test/lib/check.sh
@@ -49,7 +49,7 @@ mirror_images_redundant() {
(grep -v ^# check.tmp.all || true) | sort | uniq -d > check.tmp
- test "$(cat check.tmp | wc -l)" -eq 0 || \
+ test "$(wc -l < check.tmp)" -eq 0 || \
die "mirror images of $lv expected redundant, but are not:" \
"$(cat check.tmp.all)"
}