From bcc157901b4e73a38340ad10c34d6cf4ab6b6ae0 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Fri, 7 Aug 2020 17:38:48 +0200 Subject: [PATCH] dev-ros/test_diagnostic_aggregator: fix tests Closes: https://bugs.gentoo.org/624784 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Alexis Ballier --- .../test_diagnostic_aggregator-1.9.4.ebuild | 6 ++++++ .../test_diagnostic_aggregator-9999.ebuild | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/dev-ros/test_diagnostic_aggregator/test_diagnostic_aggregator-1.9.4.ebuild b/dev-ros/test_diagnostic_aggregator/test_diagnostic_aggregator-1.9.4.ebuild index 5fe90378f6ece..fcaf935a3f4e5 100644 --- a/dev-ros/test_diagnostic_aggregator/test_diagnostic_aggregator-1.9.4.ebuild +++ b/dev-ros/test_diagnostic_aggregator/test_diagnostic_aggregator-1.9.4.ebuild @@ -23,3 +23,9 @@ RDEPEND=" " DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/gcc6.patch" ) + +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/test_diagnostic_aggregator/test_diagnostic_aggregator-9999.ebuild b/dev-ros/test_diagnostic_aggregator/test_diagnostic_aggregator-9999.ebuild index 5fe90378f6ece..fcaf935a3f4e5 100644 --- a/dev-ros/test_diagnostic_aggregator/test_diagnostic_aggregator-9999.ebuild +++ b/dev-ros/test_diagnostic_aggregator/test_diagnostic_aggregator-9999.ebuild @@ -23,3 +23,9 @@ RDEPEND=" " DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/gcc6.patch" ) + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}" + ros-catkin_src_test +}