Skip to content

Commit 4d0bf6e

Browse files
committed
fix rmw_test_fixture issue
1 parent cfee17f commit 4d0bf6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

microros_utils/library_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,12 @@ def build_dev_environment(self):
9898
print("Building micro-ROS dev dependencies")
9999

100100
# Fix build: Ignore rmw_test_fixture_implementation in rolling
101-
touch_command = ''
101+
command = ''
102102
if self.distro in ('rolling', 'kilted'):
103-
touch_command = 'touch src/ament_cmake_ros/rmw_test_fixture_implementation/COLCON_IGNORE && '
103+
command = "cd {} && . {} && colcon build --packages-ignore rmw_test_fixture --cmake-args -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=`which python`".format(self.dev_folder , self.python_env)
104+
else:
105+
command = "cd {} && . {} && colcon build --cmake-args -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=`which python`".format(self.dev_folder , self.python_env)
104106

105-
command = "cd {} && {} . {} && colcon build --cmake-args -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=`which python`".format(self.dev_folder, touch_command, self.python_env)
106107
result = run_cmd(command, env=self.env)
107108

108109
if 0 != result.returncode:

0 commit comments

Comments
 (0)