Skip to content
Browse files

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
  • Loading branch information...
dweeezil authored and behlendorf committed Jun 16, 2018
1 parent a8577bd commit 88eaf610d9c7056f0946e5090cba1e6288ff2b70
Showing with 2 additions and 2 deletions.
  1. +2 −2 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\""

0 comments on commit 88eaf61

Please sign in to comment.
You can’t perform that action at this time.