]> git.proxmox.com Git - mirror_zfs.git/commit
tests/zdb_encrypted: parse numbers a little more robustly
authorRob N <robn@despairlabs.com>
Wed, 26 Apr 2023 15:50:44 +0000 (01:50 +1000)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 15:50:44 +0000 (08:50 -0700)
commitb69cb06664ad74f5907f3a6675657b7d4b3daa44
treeafdd279df0bf4e61ae82d44561229848c276caf3
parentd960beca61b3c5ede8eb595ceb091666e0d4a17c
tests/zdb_encrypted: parse numbers a little more robustly

On FreeBSD, `wc` prints some leading spaces, while on Linux it does not.
So we tell ksh to expect an integer, and it does the rest.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #14791
Closes #14797
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_encrypted.ksh