diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 3 | ||||
-rw-r--r-- | eclass/python-utils-r1.eclass | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 3d69911d9209..3d756eaad556 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -617,6 +617,9 @@ distutils_enable_tests() { ;; pytest) test_pkgs='>=dev-python/pytest-7.3.1[${PYTHON_USEDEP}]' + if [[ ${EPYTEST_XDIST} ]]; then + test_pkgs+=' dev-python/pytest-xdist[${PYTHON_USEDEP}]' + fi ;; setup.py) ;; diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 48963728cc2f..80abe974f9df 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1311,7 +1311,9 @@ _python_check_occluded_packages() { # @DEFAULT_UNSET # @DESCRIPTION: # If set to a non-empty value, enables running tests in parallel -# via pytest-xdist plugin. +# via pytest-xdist plugin. If this variable is set prior to calling +# distutils_enable_tests in distutils-r1, a test dependency +# on dev-python/pytest-xdist is added automatically. # @ECLASS_VARIABLE: EPYTEST_JOBS # @USER_VARIABLE |