mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Update package to 3.8.0. Add PYPI_SOURCE_NAME since PyPI switched sdist filename to use underscores (pytest_xdist-3.8.0.tar.gz). Add test.sh to verify basic plugin functionality. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
19 lines
398 B
Bash
19 lines
398 B
Bash
#!/bin/sh
|
|
[ "$1" = python3-pytest-xdist ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import xdist
|
|
import xdist.plugin
|
|
import xdist.scheduler
|
|
|
|
# Verify version
|
|
assert xdist.__version__, "xdist version is empty"
|
|
|
|
# Verify key scheduler classes are importable
|
|
from xdist.scheduler import LoadScheduling, EachScheduling
|
|
sched = LoadScheduling.__name__
|
|
assert sched == 'LoadScheduling'
|
|
|
|
print("pytest-xdist OK")
|
|
EOF
|