Skip to content

Commit 0002367

Browse files
committed
ZTS: Stop zpool_status tests from spamming stdout (openzfs#17292)
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]> Reviewed-by: Tino Reichardt <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Alexander Motin <[email protected]>
1 parent 93af497 commit 0002367

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
@@ -58,7 +58,7 @@ log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file
5858
log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file
5959

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

6363
log_must zfs snapshot $TESTPOOL2@snap
6464
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
@@ -62,7 +62,7 @@ log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file
6262
log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file
6363

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

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

0 commit comments

Comments
 (0)