]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ZTS: Fix zpool_expand_001_pos
authorTony Hutter <hutter2@llnl.gov>
Tue, 9 Aug 2022 20:26:46 +0000 (13:26 -0700)
committerGitHub <noreply@github.com>
Tue, 9 Aug 2022 20:26:46 +0000 (13:26 -0700)
commitb3d0568cfd65458c92f7ab3d7bb709087992628e
treec698052a0c2ef0151689dea78802372e696ffcda
parent91983265b62cf060f9d68544edc901ba4297e67a
ZTS: Fix zpool_expand_001_pos

`zpool_expand_001_pos` was often failing due to not seeing autoexpand
commands in the `zpool history`.  During testing, I found this to be
unreliable (sometimes the "online" wouldn't appear in `zpool history`)
and unnecessary, as we could simply check that the pool increased in
size.

This commit revamps the test to check for the expanded pool size
and corresponding new free space.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #13743
tests/zfs-tests/tests/functional/cli_root/zpool_expand/zpool_expand_001_pos.ksh