]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Fix zpool_create/create-o_ashift on FreeBSD
authorRyan Moeller <ryan@iXsystems.com>
Wed, 19 Feb 2020 18:27:23 +0000 (13:27 -0500)
committerGitHub <noreply@github.com>
Wed, 19 Feb 2020 18:27:23 +0000 (10:27 -0800)
commit873cd182de5ff49cdad26381665d21543036a051
tree33a4acf357f1f8e07dce2f6620f3f88d95ec6785
parent392556f0efa0129c51b08378b2e52b6667424a56
ZTS: Fix zpool_create/create-o_ashift on FreeBSD

For some unknown reason, egrep was misbehaving with this pattern on
FreeBSD.  The command works fine run interactively from a shell, but
in the test the output of egrep is empty.

Work around the issue by using a filter in the awk script instead.

While here, add a bit of diagnostic output and other simplifications
to the awk script as well.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10023
tests/zfs-tests/tests/functional/cli_root/zpool_create/create-o_ashift.ksh