commit: 75eb25cad20af177b18a87e835ab9f514742d5d2
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 12 08:18:41 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 12 08:18:41 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75eb25ca
dev-embedded/platformio: run tests
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-embedded/platformio/platformio-5.2.3.ebuild | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/dev-embedded/platformio/platformio-5.2.3.ebuild
b/dev-embedded/platformio/platformio-5.2.3.ebuild
index 4e9d42889936..a76ad9f23ca8 100644
--- a/dev-embedded/platformio/platformio-5.2.3.ebuild
+++ b/dev-embedded/platformio/platformio-5.2.3.ebuild
@@ -17,9 +17,6 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-# Needs some more work to get running
-RESTRICT="test"
-
RDEPEND="
$(python_gen_cond_dep '
=dev-python/aiofiles-0.7.0*[${PYTHON_USEDEP}]
@@ -45,4 +42,24 @@ RDEPEND="
')"
BDEPEND="test? ( $(python_gen_cond_dep
'dev-python/jsondiff[${PYTHON_USEDEP}]') )"
+# This list could be refined a bit to have individual tests which need network
+# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it
right now.
+EPYTEST_IGNORE=(
+ # Requires network access
+ tests/test_builder.py
+ tests/package/test_manager.py
+ tests/package/test_manifest.py
+ tests/commands/test_platform.py
+ tests/commands/test_test.py
+ tests/commands/test_ci.py
+ tests/commands/test_init.py
+ tests/commands/test_lib.py
+ tests/commands/test_lib_complex.py
+ tests/commands/test_boards.py
+ tests/commands/test_check.py
+ tests/test_ino2cpp.py
+ tests/test_maintenance.py
+ tests/test_misc.py
+)
+
distutils_enable_tests pytest