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>
This commit is contained in:
Alexis Ballier
2020-08-04 17:46:02 +02:00
parent c7ce8603e6
commit f2dfe451be
2 changed files with 10 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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
}