aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-02-07 15:31:38 -0500
committerGitHub <[email protected]>2020-02-07 12:31:38 -0800
commit9825e7ad1d5d8b36cf1afdbc6861bb52269f8317 (patch)
treed60aa73c9378dd7d6a9d9d5ed8f1deb21b86dbf7 /tests/zfs-tests
parent795699a6cc28b8f1059397e03d1a86d576bfc7dc (diff)
ZTS: Use wc -c instead of --bytes for portability
FreeBSD does not have the long opts for wc. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Paul Dagnelie <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9963
Diffstat (limited to 'tests/zfs-tests')
-rwxr-xr-xtests/zfs-tests/tests/functional/redacted_send/redacted_size.ksh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/zfs-tests/tests/functional/redacted_send/redacted_size.ksh b/tests/zfs-tests/tests/functional/redacted_send/redacted_size.ksh
index 81e7fe31d..7456084b0 100755
--- a/tests/zfs-tests/tests/functional/redacted_send/redacted_size.ksh
+++ b/tests/zfs-tests/tests/functional/redacted_send/redacted_size.ksh
@@ -45,7 +45,7 @@ log_must zfs snapshot $clone@snap
log_must zfs redact $sendfs@snap book $clone@snap
log_must eval "zfs send -nvP --redact book $sendfs@snap | \
grep '^size' | awk '{print \$2}' >$size"
-log_must eval "zfs send --redact book $sendfs@snap | wc --bytes \
+log_must eval "zfs send --redact book $sendfs@snap | wc -c \
>$size2"
bytes1=$(cat $size | tr -d '[[:space:]]')
bytes2=$(cat $size2 | tr -d '[[:space:]]')
@@ -55,7 +55,7 @@ bytes2=$(cat $size2 | tr -d '[[:space:]]')
log_must zfs snapshot $sendfs@snap2
log_must eval "zfs send -nvP -i $sendfs#book $sendfs@snap2 | \
grep '^size' | awk '{print \$2}' >$size"
-log_must eval "zfs send -i $sendfs#book $sendfs@snap2 | wc --bytes >$size2"
+log_must eval "zfs send -i $sendfs#book $sendfs@snap2 | wc -c >$size2"
bytes1=$(cat $size | tr -d '[[:space:]]')
bytes2=$(cat $size2 | tr -d '[[:space:]]')
[[ "$bytes1" -eq "$bytes2" ]] || \