]> git.proxmox.com Git - mirror_zfs.git/commit - tests/zfs-tests/include/libtest.shlib
ZTS: Fix snapshot_009_pos, snapshot_010_pos
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 2 Oct 2018 00:15:57 +0000 (17:15 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Oct 2018 00:15:57 +0000 (17:15 -0700)
commit838bd5ff35db04695ba4eadc7fdb2d56ff816ee5
tree5a19ae6ebd4021df27e543cbdc0ab5f30962f9b8
parent424fd7c3e080255935646d2beaa2655c116cc37a
ZTS: Fix snapshot_009_pos, snapshot_010_pos

Mitigate the likelihood of the newly created volumes being busy
when the 'zfs destroy -r' is issued by waiting for udev to settle.
Since this is not a iron clad fix I've added the test case to
the known list of possible failures and referenced issue #7961.

Finally, in the case this test does fail fix the cleanup logic
so subsequent tests won't incorrectly fail.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7961
Closes #7962
tests/test-runner/bin/zts-report.py
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/snapshot/snapshot_009_pos.ksh
tests/zfs-tests/tests/functional/snapshot/snapshot_010_pos.ksh