diff options
author | Rich Ercolani <[email protected]> | 2021-12-17 15:39:10 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-17 12:39:10 -0800 |
commit | 1a79f7e86021c5de33d3518dd9a0f14f924ee345 (patch) | |
tree | d1210bb9d0965e5b8a1b5310f9d093294e49a374 /tests/zfs-tests | |
parent | 9aa0915f8785bafb99f39464bebe5966548677bb (diff) |
ZTS: Avoid piping send directly to /dev/null
Unfortunately, #11445 means while we fail gracefully now, we still
fail, unless people want to implement a complex workaround just to
support /dev/null.
So let's just use the cheap workaround in a test for now.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #12872
Diffstat (limited to 'tests/zfs-tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/history/history_006_neg.ksh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/history/history_006_neg.ksh b/tests/zfs-tests/tests/functional/history/history_006_neg.ksh index 19b7114fa..c3a5e092d 100755 --- a/tests/zfs-tests/tests/functional/history/history_006_neg.ksh +++ b/tests/zfs-tests/tests/functional/history/history_006_neg.ksh @@ -75,7 +75,9 @@ if ! is_linux; then log_must zfs share $fs log_must zfs unshare $fs fi -log_must zfs send -i $snap1 $snap2 > /dev/null +# https://github.com/openzfs/zfs/issues/11445 +set -o pipefail +log_must zfs send -i $snap1 $snap2 | cat > /dev/null log_must zfs holds $snap1 log_must eval "zpool history $TESTPOOL > $NEW_HISTORY" |