]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Fix zdb_display_block on FreeBSD
authorRyan Moeller <ryan@iXsystems.com>
Wed, 12 Feb 2020 21:01:55 +0000 (16:01 -0500)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2020 21:01:55 +0000 (13:01 -0800)
commit9c536b9a7824f17ab85ba9dfafc95f65eac68e0e
treec000f9a6ce07b7484de0fcbdc1c6fe28b5aaa87c
parente7be5c47bd8f824c79631b2747731ae169d6ae7a
ZTS: Fix zdb_display_block on FreeBSD

Missed this in the review, but wc output on FreeBSD is indented,
so string comparisons mismatch when comparing to an unindented number.

Compare counts as integers instead of strings.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Paul Zuchowski <pzuchowski@datto.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #9980
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_display_block.ksh