summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-08-07 17:45:27 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-08-07 17:52:23 +0200
commit07d17b2198a9dc82ff87546a5ff1fe23fd8d7464 (patch)
treeec2296ec4e89138b80d75127db24203edc3bcefd /dev-ros
parentdev-ros/diagnostic_analysis: fix tests (diff)
downloadgentoo-07d17b2198a9dc82ff87546a5ff1fe23fd8d7464.tar.gz
gentoo-07d17b2198a9dc82ff87546a5ff1fe23fd8d7464.tar.bz2
gentoo-07d17b2198a9dc82ff87546a5ff1fe23fd8d7464.zip
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@gentoo.org>
Diffstat (limited to 'dev-ros')
-rw-r--r--dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild6
-rw-r--r--dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild6
2 files changed, 12 insertions, 0 deletions
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 52adc5bd81d8..34ba1bbe98c4 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 52adc5bd81d8..34ba1bbe98c4 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
+}