Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/tf2_ros/
Date: Wed, 05 Aug 2020 15:30:41
Message-Id: 1596641410.5a6a0342b5582d9f41f3076d447fe331be95d557.aballier@gentoo
1 commit: 5a6a0342b5582d9f41f3076d447fe331be95d557
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 5 15:09:05 2020 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 5 15:30:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a6a0342
7
8 dev-ros/tf2_ros: fix tests
9
10 Closes: https://bugs.gentoo.org/734704
11 Package-Manager: Portage-3.0.1, Repoman-2.3.23
12 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
13
14 dev-ros/tf2_ros/tf2_ros-0.7.2.ebuild | 6 ++++++
15 dev-ros/tf2_ros/tf2_ros-9999.ebuild | 6 ++++++
16 2 files changed, 12 insertions(+)
17
18 diff --git a/dev-ros/tf2_ros/tf2_ros-0.7.2.ebuild b/dev-ros/tf2_ros/tf2_ros-0.7.2.ebuild
19 index 46f41781292..efd7f5b732c 100644
20 --- a/dev-ros/tf2_ros/tf2_ros-0.7.2.ebuild
21 +++ b/dev-ros/tf2_ros/tf2_ros-0.7.2.ebuild
22 @@ -31,3 +31,9 @@ DEPEND="${RDEPEND}
23 dev-ros/geometry_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
24 dev-ros/tf2_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
25 "
26 +
27 +src_test() {
28 + # Needed for tests to find internal launch file
29 + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
30 + ros-catkin_src_test
31 +}
32
33 diff --git a/dev-ros/tf2_ros/tf2_ros-9999.ebuild b/dev-ros/tf2_ros/tf2_ros-9999.ebuild
34 index 46f41781292..efd7f5b732c 100644
35 --- a/dev-ros/tf2_ros/tf2_ros-9999.ebuild
36 +++ b/dev-ros/tf2_ros/tf2_ros-9999.ebuild
37 @@ -31,3 +31,9 @@ DEPEND="${RDEPEND}
38 dev-ros/geometry_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
39 dev-ros/tf2_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
40 "
41 +
42 +src_test() {
43 + # Needed for tests to find internal launch file
44 + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
45 + ros-catkin_src_test
46 +}