]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Fix and reenable zfs_rename tests
authorTom Caputi <tcaputi@datto.com>
Thu, 8 Nov 2018 00:59:27 +0000 (19:59 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 8 Nov 2018 00:59:27 +0000 (16:59 -0800)
commitd8244d34bdc3e7b864e0152b55477fa61dae3e90
treed317d4f771ec8501ff85acb667a8284520b1df2a
parentc2bcfa71f40beb87d2a13f42193487e31f077137
ZTS: Fix and reenable zfs_rename tests

zfs_rename_006_pos has been flaky in the past because it was
missing a call to block_device_wait to ensure the zvols it creates
are present before running dd. Whenever this this happened,
zfs_rename_009_neg would also fail because the first test would
leak a zvol clone that it did not know how to clean up. This patch
fixes the root cause and reenables the test. It also fixes some
minor grammar errors.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #5647
Closes #5648
Closes #8088
tests/test-runner/bin/zts-report.py
tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename_006_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename_009_neg.ksh