tests: review all wc(1) invocations

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13259
This commit is contained in:
наб
2022-03-23 22:01:06 +01:00
committed by Brian Behlendorf
parent 23914a3b91
commit 964d41806f
21 changed files with 49 additions and 63 deletions
@@ -62,7 +62,7 @@ fi
zpool iostat $TESTPOOL 1 4 > $tmpfile 2>&1 &
sleep 4
stat_count=$(grep $TESTPOOL $tmpfile | wc -l)
stat_count=$(grep -c $TESTPOOL $tmpfile)
if [[ $stat_count -ne 4 ]]; then
log_fail "zpool iostat [pool_name] [interval] [count] failed"