]> granicus.if.org Git - zfs/commit
ZTS: Fix trim/trim_config and trim/autotrim_config
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 4 Oct 2019 19:38:07 +0000 (12:38 -0700)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2019 19:38:07 +0000 (12:38 -0700)
commit94bcf6f5e31aad91033111ffed0ca45934e0e37d
tree6fadc236f60662014381dad69c3f654c47bfadb7
parent6bd4f4545d3d334442fbe87d40ad0e0542703ce6
ZTS: Fix trim/trim_config and trim/autotrim_config

There have been occasional CI failures which occur when the trimmed
vdev size exactly matches the target size.  Resolve this by slightly
relaxing the conditional and checking for -ge rather than -gt.  In
all of the cases observer, the values match exactly.  For example:

    Failure /mnt/trim-vdev1 is 768 MB which is not -gt than 768 MB

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9399
tests/zfs-tests/tests/functional/trim/autotrim_config.ksh
tests/zfs-tests/tests/functional/trim/trim_config.ksh