HomeFreeBSD

tests/zdb_encrypted: parse numbers a little more robustly

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on Apr 26 2023, 3:50 PM
GitHub <noreply@github.com>Committed on Apr 26 2023, 3:50 PM
Parents
rGd960beca61b3: zdb: Fix minor memory leak
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGb69cb06664ad: tests/zdb_encrypted: parse numbers a little more robustly (authored by Rob N <robn@despairlabs.com>).Apr 26 2023, 3:50 PM