mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-01 03:34:10 +03:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user