From 56c1fc9c03b9aedc3755f0aac4c9e17a41e878ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20F=C3=BCl=C3=B6p?= Date: Tue, 1 Dec 2020 09:18:30 +0100 Subject: [PATCH] zpool dryrun: fix test failure due to added blank line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Attila Fülöp --- .../tests/functional/cli_root/zpool_add/zpool_add_003_pos.ksh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_003_pos.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_003_pos.ksh index f270041308b7..f7197432f1f6 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_003_pos.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_003_pos.ksh @@ -91,7 +91,7 @@ log_must zpool add -f $TESTPOOL $config zpool status $TESTPOOL | awk 'NR == 1, /NAME/ { next } /^$/ {exit} {print $1}' > "$TMPFILE_PREFIX-vdevtree" cat "$TMPFILE_PREFIX-dryrun" | awk 'NR == 1, /would/ {next} - {print $1}' > "$TMPFILE_PREFIX-vdevtree-n" + /^$/ {next} {print $1}' > "$TMPFILE_PREFIX-vdevtree-n" log_must eval "diff $TMPFILE_PREFIX-vdevtree-n $TMPFILE_PREFIX-vdevtree" log_pass "'zpool add -n ...' executes successfully."