mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Python3: replace distutils with sysconfig
- `distutils` module is long time deprecated and already deleted
from the CPython mainline.
- To remain compatible with Debian/Ubuntu Python3 packaging style,
try
`distutils.sysconfig.get_python_path(0,0)`
first with fallback on
`sysconfig.get_path('purelib')`
- pyzfs_unittest suite is run unconditionally as a part of ZTS.
- Add pyzfs_unittest suite to sanity tests.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #12833
Closes #13280
Closes #14177
This commit is contained in:
@@ -61,14 +61,6 @@ known_reason = 'Known issue'
|
||||
#
|
||||
exec_reason = 'Test user execute permissions required for utilities'
|
||||
|
||||
#
|
||||
# Some tests require a minimum python version of 3.6 and will be skipped when
|
||||
# the default system version is too old. There may also be tests which require
|
||||
# additional python modules be installed, for example python3-cffi is required
|
||||
# by the pyzfs tests.
|
||||
#
|
||||
python_deps_reason = 'Python modules missing: python3-cffi'
|
||||
|
||||
#
|
||||
# Some tests require that the kernel supports renameat2 syscall.
|
||||
#
|
||||
@@ -232,7 +224,6 @@ maybe = {
|
||||
'io/mmap': ['SKIP', fio_reason],
|
||||
'largest_pool/largest_pool_001_pos': ['FAIL', known_reason],
|
||||
'mmp/mmp_on_uberblocks': ['FAIL', known_reason],
|
||||
'pyzfs/pyzfs_unittest': ['SKIP', python_deps_reason],
|
||||
'pool_checkpoint/checkpoint_discard_busy': ['FAIL', 11946],
|
||||
'projectquota/setup': ['SKIP', exec_reason],
|
||||
'removal/removal_condense_export': ['FAIL', known_reason],
|
||||
|
||||
Reference in New Issue
Block a user