summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-08-24 13:58:25 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-08-24 15:44:29 +0200
commit3976bf4a11ba384e0faf31b278deebc7d8c24ddc (patch)
tree30f446def18fc2e1eadfaa76c79f759ad622e13d /dev-ros/xacro
parentdev-ros/self_test: fix tests (diff)
downloadgentoo-3976bf4a11ba384e0faf31b278deebc7d8c24ddc.tar.gz
gentoo-3976bf4a11ba384e0faf31b278deebc7d8c24ddc.tar.bz2
gentoo-3976bf4a11ba384e0faf31b278deebc7d8c24ddc.zip
dev-ros/xacro: fix tests again
Closes: https://bugs.gentoo.org/738626 Package-Manager: Portage-3.0.3, Repoman-3.0.0 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/xacro')
-rw-r--r--dev-ros/xacro/xacro-1.14.1.ebuild4
-rw-r--r--dev-ros/xacro/xacro-9999.ebuild4
2 files changed, 6 insertions, 2 deletions
diff --git a/dev-ros/xacro/xacro-1.14.1.ebuild b/dev-ros/xacro/xacro-1.14.1.ebuild
index 775778479d64..8383de0334c5 100644
--- a/dev-ros/xacro/xacro-1.14.1.ebuild
+++ b/dev-ros/xacro/xacro-1.14.1.ebuild
@@ -25,6 +25,8 @@ RDEPEND="${RDEPEND}
PATCHES=( "${FILESDIR}/tests.patch" )
src_test() {
+ local sd="$(python_get_sitedir)"
+ local local_sd="${BUILD_DIR}/devel/${sd#${EPREFIX}/usr}"
export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
- ros-catkin_src_test
+ PYTHONPATH="${local_sd}:${PYTHONPATH}" ros-catkin_src_test
}
diff --git a/dev-ros/xacro/xacro-9999.ebuild b/dev-ros/xacro/xacro-9999.ebuild
index 775778479d64..8383de0334c5 100644
--- a/dev-ros/xacro/xacro-9999.ebuild
+++ b/dev-ros/xacro/xacro-9999.ebuild
@@ -25,6 +25,8 @@ RDEPEND="${RDEPEND}
PATCHES=( "${FILESDIR}/tests.patch" )
src_test() {
+ local sd="$(python_get_sitedir)"
+ local local_sd="${BUILD_DIR}/devel/${sd#${EPREFIX}/usr}"
export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
- ros-catkin_src_test
+ PYTHONPATH="${local_sd}:${PYTHONPATH}" ros-catkin_src_test
}