summaryrefslogtreecommitdiffstats
path: root/lang/python/python-pytest-xdist/test.sh
blob: d6a21688c88db52a87dcdd5e974c9fb1070237f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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