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 <john.kennedy@delphix.com> Reviewed-by: Rich Ercolani <rincebrain@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #12873
This commit is contained in:
parent
d4794c8204
commit
fe8b0a33d4
|
@ -280,11 +280,6 @@ if sys.platform.startswith('freebsd'):
|
||||||
})
|
})
|
||||||
elif sys.platform.startswith('linux'):
|
elif sys.platform.startswith('linux'):
|
||||||
maybe.update({
|
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/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_001_pos': ['FAIL', known_reason],
|
||||||
'cli_root/zpool_expand/zpool_expand_005_pos': ['FAIL', known_reason],
|
'cli_root/zpool_expand/zpool_expand_005_pos': ['FAIL', known_reason],
|
||||||
|
|
|
@ -62,6 +62,7 @@ function display_status
|
||||||
((ret |= $?))
|
((ret |= $?))
|
||||||
|
|
||||||
kill -9 $pid
|
kill -9 $pid
|
||||||
|
wait $pid 2> /dev/null
|
||||||
|
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue