commit: 07d17b2198a9dc82ff87546a5ff1fe23fd8d7464 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> AuthorDate: Fri Aug 7 15:45:27 2020 +0000 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> CommitDate: Fri Aug 7 15:52:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07d17b21
dev-ros/diagnostic_aggregator: fix tests Closes: https://bugs.gentoo.org/624768 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild | 6 ++++++ dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild b/dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild index 52adc5bd81d..34ba1bbe98c 100644 --- a/dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild +++ b/dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild @@ -27,3 +27,9 @@ RDEPEND=" DEPEND="${RDEPEND} dev-ros/diagnostic_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] test? ( dev-ros/rostest )" + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}" + ros-catkin_src_test +} diff --git a/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild b/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild index 52adc5bd81d..34ba1bbe98c 100644 --- a/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild +++ b/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild @@ -27,3 +27,9 @@ RDEPEND=" DEPEND="${RDEPEND} dev-ros/diagnostic_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] test? ( dev-ros/rostest )" + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}" + ros-catkin_src_test +}