mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-20 05:40:05 +01:00
12 lines
245 B
Python
12 lines
245 B
Python
|
|
import os
|
||
|
|
|
||
|
|
try:
|
||
|
|
import xdist # noqa: F401
|
||
|
|
|
||
|
|
# Otherwise we get unknown hook 'pytest_xdist_auto_num_workers'
|
||
|
|
def pytest_xdist_auto_num_workers(config):
|
||
|
|
return os.getenv("FDO_CI_CONCURRENT", None)
|
||
|
|
|
||
|
|
except ImportError:
|
||
|
|
pass
|