Skip to content

Commit f40721b

Browse files
committed
ZTS: Stop zpool_status tests from spamming stdout
zpool_status_003 and zpool_status_004_pos use 'dd' to trigger a read of a file without specifying 'of=/dev/null'. This spams the ZTS logs with ~20MB of garbage data. This commit adds 'of=/dev/null'. Signed-off-by: Tony Hutter <[email protected]>
1 parent aa46cc9 commit f40721b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_003_pos.ksh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file
5959
log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file
6060

6161
# Try to read the 2nd megabyte of 10m_file
62-
dd if=/$TESTPOOL2/10m_file bs=1M || true
62+
dd if=/$TESTPOOL2/10m_file bs=1M of=/dev/null || true
6363

6464
log_must zfs snapshot $TESTPOOL2@snap
6565
log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone

tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_004_pos.ksh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file
6363
log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file
6464

6565
# Try to read the file
66-
dd if=/$TESTPOOL2/10m_file bs=1M || true
66+
dd if=/$TESTPOOL2/10m_file bs=1M of=/dev/null || true
6767

6868
log_must zfs snapshot $TESTPOOL2@snap
6969
log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone

0 commit comments

Comments
 (0)