aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2021-12-17 12:40:34 -0800
committerGitHub <[email protected]>2021-12-17 12:40:34 -0800
commiteecd3f1a2184282a389440f102f756aab900da47 (patch)
treecc06e83efe31d694c8f14e7ec9061d85086855c5 /tests/zfs-tests
parent1a79f7e86021c5de33d3518dd9a0f14f924ee345 (diff)
ZTS: alloc_class.ksh must wait for the process to exit
The alloc_class_* tests may fail on Linux with an EBUSY error if `zfs destroy` is run before the `dd` process has had a chance to terminate. Wait on the pid after the `kill -9` to make sure. When testing I didn't observe any failures for the alloc_class tests. Remove them from the exceptions list, the CI was used to verify the tests pass on all platforms. Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Rich Ercolani <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #12873
Diffstat (limited to 'tests/zfs-tests')
-rw-r--r--tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib b/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib
index 4c64cff69..e204f43b3 100644
--- a/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib
+++ b/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib
@@ -62,6 +62,7 @@ function display_status
((ret |= $?))
kill -9 $pid
+ wait $pid 2> /dev/null
return $ret
}