Use "eval" in history_002_pos for log_must

Otherwise the output is consumed by the output redirection.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #7570
This commit is contained in:
Tim Chase 2018-06-16 11:21:46 -05:00 committed by Brian Behlendorf
parent a8577bdb32
commit 88eaf610d9
1 changed files with 2 additions and 2 deletions

View File

@ -143,8 +143,8 @@ run_and_verify "zfs snapshot $fssnap2"
run_and_verify "zfs snapshot $volsnap2" run_and_verify "zfs snapshot $volsnap2"
# Send isn't logged... # Send isn't logged...
log_must zfs send -i $fssnap $fssnap2 > $tmpfile log_must eval "zfs send -i $fssnap $fssnap2 > $tmpfile"
log_must zfs send -i $volsnap $volsnap2 > $tmpfile2 log_must eval "zfs send -i $volsnap $volsnap2 > $tmpfile2"
# Verify that's true # Verify that's true
zpool history $TESTPOOL | grep 'zfs send' >/dev/null 2>&1 && \ zpool history $TESTPOOL | grep 'zfs send' >/dev/null 2>&1 && \
log_fail "'zfs send' found in history of \"$TESTPOOL\"" log_fail "'zfs send' found in history of \"$TESTPOOL\""