Skip to content

Commit d2aff9e

Browse files
committed
fix rmw_test_fixture issue
1 parent cfee17f commit d2aff9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

microros_utils/library_builder.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ 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'):
103103
touch_command = 'touch src/ament_cmake_ros/rmw_test_fixture_implementation/COLCON_IGNORE && '
104+
command = "cd {} && {} . {} && colcon build --packages-ignore rmw_test_fixture --cmake-args -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=`which python`".format(self.dev_folder , touch_command, self.python_env)
105+
else:
106+
command = "cd {} && . {} && colcon build --cmake-args -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=`which python`".format(self.dev_folder , self.python_env)
104107

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

108110
if 0 != result.returncode:

0 commit comments

Comments
 (0)