public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rosdep/
Date: Mon,  4 Oct 2021 14:22:17 +0000 (UTC)	[thread overview]
Message-ID: <1633357303.a14fe43dc734c48823b95db6096d7a3a30895202.arthurzam@gentoo> (raw)

commit:     a14fe43dc734c48823b95db6096d7a3a30895202
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  4 13:40:28 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Oct  4 14:21:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a14fe43d

dev-util/rosdep: cleanup tests

- Use new feature of PROPERTIES="test_network"
- use cleaner unset ROS_DISTRO

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-util/rosdep/rosdep-0.21.0.ebuild | 19 +++++++++----------
 dev-util/rosdep/rosdep-9999.ebuild   | 19 +++++++++----------
 2 files changed, 18 insertions(+), 20 deletions(-)

diff --git a/dev-util/rosdep/rosdep-0.21.0.ebuild b/dev-util/rosdep/rosdep-0.21.0.ebuild
index 8e8c536d355..12ed94c4c91 100644
--- a/dev-util/rosdep/rosdep-0.21.0.ebuild
+++ b/dev-util/rosdep/rosdep-0.21.0.ebuild
@@ -26,17 +26,17 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
+
+# Tests need network
+RESTRICT="test"
+PROPERTIES="test_network"
 
 RDEPEND="
 	dev-python/catkin_pkg[${PYTHON_USEDEP}]
 	dev-python/rospkg[${PYTHON_USEDEP}]
 	dev-python/rosdistro[${PYTHON_USEDEP}]
 	dev-python/pyyaml[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}"
 BDEPEND="
-	dev-python/nose[${PYTHON_USEDEP}]
 	test? (
 		dev-python/mock[${PYTHON_USEDEP}]
 		dev-python/flake8[${PYTHON_USEDEP}]
@@ -44,12 +44,11 @@ BDEPEND="
 "
 PATCHES=( "${FILESDIR}/tests.patch" )
 
-python_test() {
-	if has network-sandbox ${FEATURES}; then
-		einfo "Skipping tests due to network sandbox"
-	else
-		env -u ROS_DISTRO nosetests --with-xunit test || die
-	fi
+distutils_enable_tests nose
+
+src_test() {
+	unset ROS_DISTRO
+	distutils-r1_src_test
 }
 
 pkg_postrm() {

diff --git a/dev-util/rosdep/rosdep-9999.ebuild b/dev-util/rosdep/rosdep-9999.ebuild
index 8e8c536d355..12ed94c4c91 100644
--- a/dev-util/rosdep/rosdep-9999.ebuild
+++ b/dev-util/rosdep/rosdep-9999.ebuild
@@ -26,17 +26,17 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
+
+# Tests need network
+RESTRICT="test"
+PROPERTIES="test_network"
 
 RDEPEND="
 	dev-python/catkin_pkg[${PYTHON_USEDEP}]
 	dev-python/rospkg[${PYTHON_USEDEP}]
 	dev-python/rosdistro[${PYTHON_USEDEP}]
 	dev-python/pyyaml[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}"
 BDEPEND="
-	dev-python/nose[${PYTHON_USEDEP}]
 	test? (
 		dev-python/mock[${PYTHON_USEDEP}]
 		dev-python/flake8[${PYTHON_USEDEP}]
@@ -44,12 +44,11 @@ BDEPEND="
 "
 PATCHES=( "${FILESDIR}/tests.patch" )
 
-python_test() {
-	if has network-sandbox ${FEATURES}; then
-		einfo "Skipping tests due to network sandbox"
-	else
-		env -u ROS_DISTRO nosetests --with-xunit test || die
-	fi
+distutils_enable_tests nose
+
+src_test() {
+	unset ROS_DISTRO
+	distutils-r1_src_test
 }
 
 pkg_postrm() {


             reply	other threads:[~2021-10-04 14:22 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-04 14:22 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-10-27 14:05 [gentoo-commits] repo/gentoo:master commit in: dev-util/rosdep/ Alexis Ballier
2022-03-19 14:02 Arthur Zamarin
2022-03-19 14:02 Arthur Zamarin
2021-12-26  2:04 Sam James
2021-10-04 14:22 Arthur Zamarin
2021-08-06 14:35 Alexis Ballier
2021-06-01  0:40 Sam James
2020-10-22 10:46 Alexis Ballier
2020-10-20 17:09 Alexis Ballier
2020-10-20 12:44 Alexis Ballier
2020-08-17 12:53 Sam James
2020-08-07 15:57 Alexis Ballier
2019-02-08 11:21 Alexis Ballier
2019-01-15 10:46 Alexis Ballier
2019-01-15 10:46 Alexis Ballier
2018-12-21 15:51 Alexis Ballier
2018-03-25 13:48 Alexis Ballier
2018-03-25 13:48 Alexis Ballier
2018-02-15  5:52 Alexis Ballier
2018-02-12 14:03 Alexis Ballier
2018-02-12 14:03 Alexis Ballier
2017-08-04 18:40 Alexis Ballier
2017-07-30 16:44 Alexis Ballier
2017-02-27 17:10 Alexis Ballier
2017-02-09 17:46 Alexis Ballier
2017-02-09 17:46 Alexis Ballier
2016-05-26  9:31 Alexis Ballier
2015-10-06  8:41 Alexis Ballier
2015-10-06  8:41 Alexis Ballier
2015-09-26  9:33 Alexis Ballier
2015-09-17 10:41 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1633357303.a14fe43dc734c48823b95db6096d7a3a30895202.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox