commit: 3e1f8ab1d09c1cde17c3b3d6035808aeb9088e8a
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 26 12:21:07 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Nov 26 13:40:43 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e1f8ab1
app-admin/ansible-lint: tweak test configuration
dev-util/yamllint is now in the tree so we can use it, and one of the
tests requires distutils_install_for_testing. Unfortunately even leaving
aside the 14 tests which are currently broken by FEATURES=usersandbox,
the test suite simply does not succeed at the moment - even when run
manually with tox. Therefore, keep RESTRICT=test in place.
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
app-admin/ansible-lint/ansible-lint-5.2.1.ebuild | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/app-admin/ansible-lint/ansible-lint-5.2.1.ebuild
b/app-admin/ansible-lint/ansible-lint-5.2.1.ebuild
index 23d0affbc127..13812ba2d3a3 100644
--- a/app-admin/ansible-lint/ansible-lint-5.2.1.ebuild
+++ b/app-admin/ansible-lint/ansible-lint-5.2.1.ebuild
@@ -15,7 +15,9 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
-# Many tests require still-unpackaged yamlllint
+# 14 tests fail due to usersandbox denying the executable 'ansible'
+# access to $HOME/.ansible. More importantly, some tests (6 as of 5.2.1)
+# fail even when run manually with tox.
RESTRICT="test"
RDEPEND="
@@ -34,6 +36,7 @@ BDEPEND="
test? (
>=dev-python/flaky-3.7.0[${PYTHON_USEDEP}]
>=dev-python/pytest-xdist-2.1.0[${PYTHON_USEDEP}]
+ >=dev-util/yamllint-1.25.0[${PYTHON_USEDEP}]
)"
-distutils_enable_tests pytest
+distutils_enable_tests --install pytest