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 <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13352
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent 4eacbf5 commit eee59f7
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 eee59f7

Please sign in to comment.