diff options
author | Alexis Ballier <aballier@gentoo.org> | 2020-08-04 17:46:02 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2020-08-04 18:00:18 +0200 |
commit | f2dfe451beed98d1b7367bae8dcdd5d40eff19f2 (patch) | |
tree | aa86eeb260e877f8ddfecb20396ad568b173f1ba /dev-ros/resource_retriever | |
parent | dev-ros/roslaunch: fix tests (diff) | |
download | gentoo-f2dfe451beed98d1b7367bae8dcdd5d40eff19f2.tar.gz gentoo-f2dfe451beed98d1b7367bae8dcdd5d40eff19f2.tar.bz2 gentoo-f2dfe451beed98d1b7367bae8dcdd5d40eff19f2.zip |
dev-ros/resource_retriever: fix tests with network sandbox
Closes: https://bugs.gentoo.org/734738
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/resource_retriever')
-rw-r--r-- | dev-ros/resource_retriever/resource_retriever-1.12.6.ebuild | 5 | ||||
-rw-r--r-- | dev-ros/resource_retriever/resource_retriever-9999.ebuild | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/dev-ros/resource_retriever/resource_retriever-1.12.6.ebuild b/dev-ros/resource_retriever/resource_retriever-1.12.6.ebuild index 27d60028ac02..4a7691efbe1e 100644 --- a/dev-ros/resource_retriever/resource_retriever-1.12.6.ebuild +++ b/dev-ros/resource_retriever/resource_retriever-1.12.6.ebuild @@ -23,5 +23,10 @@ DEPEND="${RDEPEND} src_test() { export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + if has network-sandbox ${FEATURES}; then + einfo "Skipping network tests due to network sandbox" + export GTEST_FILTER='-Retriever.http' + export NOSE_TESTMATCH='^(?!test_http).*' + fi ros-catkin_src_test } diff --git a/dev-ros/resource_retriever/resource_retriever-9999.ebuild b/dev-ros/resource_retriever/resource_retriever-9999.ebuild index 27d60028ac02..4a7691efbe1e 100644 --- a/dev-ros/resource_retriever/resource_retriever-9999.ebuild +++ b/dev-ros/resource_retriever/resource_retriever-9999.ebuild @@ -23,5 +23,10 @@ DEPEND="${RDEPEND} src_test() { export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + if has network-sandbox ${FEATURES}; then + einfo "Skipping network tests due to network sandbox" + export GTEST_FILTER='-Retriever.http' + export NOSE_TESTMATCH='^(?!test_http).*' + fi ros-catkin_src_test } |