From: Tim Chase Date: Sat, 16 Jun 2018 16:21:46 +0000 (-0500) Subject: Use "eval" in history_002_pos for log_must X-Git-Tag: zfs-0.8.0-rc1~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88eaf610d9c7056f0946e5090cba1e6288ff2b70;p=zfs 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 --- 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 979f06076..af69668fb 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\""