1 |
commit: 07d17b2198a9dc82ff87546a5ff1fe23fd8d7464 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 7 15:45:27 2020 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 7 15:52:23 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07d17b21 |
7 |
|
8 |
dev-ros/diagnostic_aggregator: fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/624768 |
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/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild | 6 ++++++ |
15 |
dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild | 6 ++++++ |
16 |
2 files changed, 12 insertions(+) |
17 |
|
18 |
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 |
19 |
index 52adc5bd81d..34ba1bbe98c 100644 |
20 |
--- a/dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild |
21 |
+++ b/dev-ros/diagnostic_aggregator/diagnostic_aggregator-1.9.4-r1.ebuild |
22 |
@@ -27,3 +27,9 @@ RDEPEND=" |
23 |
DEPEND="${RDEPEND} |
24 |
dev-ros/diagnostic_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] |
25 |
test? ( dev-ros/rostest )" |
26 |
+ |
27 |
+src_test() { |
28 |
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" |
29 |
+ export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}" |
30 |
+ ros-catkin_src_test |
31 |
+} |
32 |
|
33 |
diff --git a/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild b/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild |
34 |
index 52adc5bd81d..34ba1bbe98c 100644 |
35 |
--- a/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild |
36 |
+++ b/dev-ros/diagnostic_aggregator/diagnostic_aggregator-9999.ebuild |
37 |
@@ -27,3 +27,9 @@ RDEPEND=" |
38 |
DEPEND="${RDEPEND} |
39 |
dev-ros/diagnostic_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] |
40 |
test? ( dev-ros/rostest )" |
41 |
+ |
42 |
+src_test() { |
43 |
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" |
44 |
+ export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}" |
45 |
+ ros-catkin_src_test |
46 |
+} |