aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests
diff options
context:
space:
mode:
authorJohn Wren Kennedy <[email protected]>2019-02-15 13:45:46 -0700
committerBrian Behlendorf <[email protected]>2019-02-15 12:45:46 -0800
commit07237a7bc1eab62d8bb2bb7b4abafe7a2fd3a482 (patch)
tree75c13c995eb66b8a2f691596566e2893b425c2bd /tests/zfs-tests
parent638dd5f44e2e56bb60a6f9aacbb1b3c22844926f (diff)
ZTS: clone_001_pos fails in cleanup on busy dataset
The "cleanup_all" function in this test calls "zfs destroy" which fails approximately 30% of the time in our environment due to the dataset being busy. Since the failure happens during cleanup, the error is propagated to subsequent tests. Tested by running the snapshot test group in a loop without seeing any failures. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Igor Kozhukhov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: John Kennedy <[email protected]> Closes #8409
Diffstat (limited to 'tests/zfs-tests')
-rwxr-xr-xtests/zfs-tests/tests/functional/snapshot/clone_001_pos.ksh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/snapshot/clone_001_pos.ksh b/tests/zfs-tests/tests/functional/snapshot/clone_001_pos.ksh
index 4ba853162..526897193 100755
--- a/tests/zfs-tests/tests/functional/snapshot/clone_001_pos.ksh
+++ b/tests/zfs-tests/tests/functional/snapshot/clone_001_pos.ksh
@@ -75,7 +75,7 @@ function cleanup_all
i=0
while (( i < ${#args[*]} )); do
snapexists ${args[i]} && \
- log_must zfs destroy -Rf ${args[i]}
+ destroy_dataset "${args[i]}" "-Rf"
[[ -d ${args[i+3]} ]] && \
log_must rm -rf ${args[i+3]}