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