summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-11-26 13:21:07 +0100
committerMarek Szuba <marecki@gentoo.org>2021-11-26 14:40:43 +0100
commit3e1f8ab1d09c1cde17c3b3d6035808aeb9088e8a (patch)
tree01f3a7d9a679ebc52351f7eb896a067d02bafd7a /app-admin
parentdev-util/yamllint: keyword 1.26.3 for ~riscv (diff)
downloadgentoo-3e1f8ab1d09c1cde17c3b3d6035808aeb9088e8a.tar.gz
gentoo-3e1f8ab1d09c1cde17c3b3d6035808aeb9088e8a.tar.bz2
gentoo-3e1f8ab1d09c1cde17c3b3d6035808aeb9088e8a.zip
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@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/ansible-lint/ansible-lint-5.2.1.ebuild7
1 files 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