diff options
author | Brian Behlendorf <[email protected]> | 2021-12-17 12:40:34 -0800 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-02-10 11:05:07 -0800 |
commit | fe8b0a33d4ad903683404cfe2b1f38f3247fc0dd (patch) | |
tree | c84e829c0db3bc998cbe0ae3785b73fa2b0cceca /tests | |
parent | d4794c820486dd8475101e727d7da7d24da73472 (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')
-rwxr-xr-x | tests/test-runner/bin/zts-report.py.in | 5 | ||||
-rw-r--r-- | tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/tests/test-runner/bin/zts-report.py.in b/tests/test-runner/bin/zts-report.py.in index c3a679675..210a08a4e 100755 --- a/tests/test-runner/bin/zts-report.py.in +++ b/tests/test-runner/bin/zts-report.py.in @@ -280,11 +280,6 @@ if sys.platform.startswith('freebsd'): }) elif sys.platform.startswith('linux'): maybe.update({ - 'alloc_class/alloc_class_009_pos': ['FAIL', known_reason], - 'alloc_class/alloc_class_010_pos': ['FAIL', known_reason], - 'alloc_class/alloc_class_011_neg': ['FAIL', known_reason], - 'alloc_class/alloc_class_012_pos': ['FAIL', known_reason], - 'alloc_class/alloc_class_013_pos': ['FAIL', '11888'], 'cli_root/zfs_rename/zfs_rename_002_pos': ['FAIL', known_reason], 'cli_root/zpool_expand/zpool_expand_001_pos': ['FAIL', known_reason], 'cli_root/zpool_expand/zpool_expand_005_pos': ['FAIL', known_reason], 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 } |