ZTS: Fix occasional inherit_001_pos.ksh failure
commit8792dd24cd9599cf506d45bcaed3af78c8cd888d
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Jul 2022 16:52:42 +0000 (25 09:52 -0700)
committerGitHub <noreply@github.com>
Mon, 25 Jul 2022 16:52:42 +0000 (25 09:52 -0700)
tree121bc52784b171555b2545a4798a7ccc71b2ad9f
parentbf61a507a276866d691a2b56866302bc42145af3
ZTS: Fix occasional inherit_001_pos.ksh failure

The mountpoint may still be busy when the `zfs unmount -a` command
is run causing an unexpected failure.  Retry the unmount a couple
of times since it should not remain busy for long.

    19:10:50.29 NOTE: Reading state from .../inheritance/state021.cfg
    19:10:50.32 cannot unmount '/TESTPOOL': pool or dataset is busy
    19:10:50.32 ERROR: zfs unmount -a exited 1

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13686
tests/zfs-tests/tests/functional/inheritance/inherit_001_pos.ksh