From 88eaf610d9c7056f0946e5090cba1e6288ff2b70 Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Sat, 16 Jun 2018 11:21:46 -0500 Subject: [PATCH] Use "eval" in history_002_pos for log_must Otherwise the output is consumed by the output redirection. Reviewed-by: Serapheim Dimitropoulos Reviewed-by: Brian Behlendorf Signed-off-by: Tim Chase Closes #7570 --- tests/zfs-tests/tests/functional/history/history_002_pos.ksh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/zfs-tests/tests/functional/history/history_002_pos.ksh b/tests/zfs-tests/tests/functional/history/history_002_pos.ksh index 979f06076a..af69668fb8 100755 --- a/tests/zfs-tests/tests/functional/history/history_002_pos.ksh +++ b/tests/zfs-tests/tests/functional/history/history_002_pos.ksh @@ -143,8 +143,8 @@ run_and_verify "zfs snapshot $fssnap2" run_and_verify "zfs snapshot $volsnap2" # Send isn't logged... -log_must zfs send -i $fssnap $fssnap2 > $tmpfile -log_must zfs send -i $volsnap $volsnap2 > $tmpfile2 +log_must eval "zfs send -i $fssnap $fssnap2 > $tmpfile" +log_must eval "zfs send -i $volsnap $volsnap2 > $tmpfile2" # Verify that's true zpool history $TESTPOOL | grep 'zfs send' >/dev/null 2>&1 && \ log_fail "'zfs send' found in history of \"$TESTPOOL\""