Skip to content

Commit

Permalink
tests: cli_user: zfs_001_neg: print the problematic lines
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#13352
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent 80734e8 commit 47b2120
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ TEMPFILE="$TEST_BASE_DIR/zfs_001_neg.$$.txt"
zfs > $TEMPFILE 2>&1
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"

0 comments on commit 47b2120

Please sign in to comment.