diff options
| author | Brian Behlendorf <behlendorf1@llnl.gov> | 2026-04-23 20:54:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-23 20:54:22 +0000 |
| commit | 9dd3c653c22a777f9934151cf50a1efe5a2c98e0 (patch) | |
| tree | cb52e72c450c38608218359881c0710fc10af3bf | |
| parent | 91f9b113313bc403f2738302d8293c65699d2e03 (diff) | |
| -rwxr-xr-x | tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_002_pos.ksh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_002_pos.ksh b/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_002_pos.ksh index eb032373185f..a2b3464b2bf0 100755 --- a/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_002_pos.ksh +++ b/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_002_pos.ksh @@ -38,7 +38,7 @@ # # STRATEGY: # 1. Set the interval to 1 and count to 4. -# 2. Sleep for 4 seconds. +# 2. Sleep for 5 seconds. # 3. Verify that the output has 4 records. # 4. Set interval to 0.5 and count to 1 to test floating point intervals. @@ -61,11 +61,12 @@ if ! is_global_zone ; then TESTPOOL=${TESTPOOL%%/*} fi -zpool iostat $TESTPOOL 1 4 > $tmpfile 2>&1 & -sleep 4 +log_must eval "zpool iostat $TESTPOOL 1 4 > $tmpfile 2>&1 &" +log_must sleep 5 stat_count=$(grep -c $TESTPOOL $tmpfile) if [[ $stat_count -ne 4 ]]; then + cat $tmpfile log_fail "zpool iostat [pool_name] [interval] [count] failed" fi |
