tests: cli_user: zfs_001_neg: print the problematic lines

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13352
This commit is contained in:
наб 2022-04-22 20:59:51 +02:00 committed by Brian Behlendorf
parent 6625262c70
commit 95146fd7ba
1 changed files with 1 additions and 1 deletions

View File

@ -55,6 +55,6 @@ TEMPFILE="$TEST_BASE_DIR/zfs_001_neg.$$.txt"
zfs > $TEMPFILE 2>&1 zfs > $TEMPFILE 2>&1
log_must grep "usage: zfs command args" "$TEMPFILE" log_must grep "usage: zfs command args" "$TEMPFILE"
log_must awk '{if (length($0) > 80) exit 1}' $TEMPFILE log_must awk 'length($0) > 80 {print; ++err} END {exit err}' $TEMPFILE
log_pass "zfs shows a usage message when run as a user" log_pass "zfs shows a usage message when run as a user"