]> git.proxmox.com Git - mirror_zfs.git/commitdiff
tests: cli_user: zfs_001_neg: print the problematic lines
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Fri, 22 Apr 2022 18:59:51 +0000 (20:59 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Apr 2022 19:49:56 +0000 (12:49 -0700)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13352

tests/zfs-tests/tests/functional/cli_user/misc/zfs_001_neg.ksh

index 9188e4ba63507ac61618bc1209883b8bb1d1f327..ec91ded976ffc7e8f104a138ae2716536388a5ba 100755 (executable)
@@ -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"