Skip to content

Commit

Permalink
[Iron] Add the iron release into distro.js (#920)
Browse files Browse the repository at this point in the history
This patch adds the iron release into distro.js and update the unit
test accordingly.

Fix: #919
  • Loading branch information
minggangw committed Jun 1, 2023
1 parent 83958f4 commit 23237ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"<!@(node -e \"console.log(process.env.AMENT_PREFIX_PATH.replace(/:/g, '/include/rcl_lifecycle/ ') + '/include/rcl_lifecycle/')\")",
"<!@(node -e \"console.log(process.env.AMENT_PREFIX_PATH.replace(/:/g, '/include/lifecycle_msgs/ ') + '/include/lifecycle_msgs/')\")",
"<!@(node -e \"console.log(process.env.AMENT_PREFIX_PATH.replace(/:/g, '/include/rosidl_runtime_c/ ') + '/include/rosidl_runtime_c/')\")",
"<!@(node -e \"console.log(process.env.AMENT_PREFIX_PATH.replace(/:/g, '/include/rosidl_dynamic_typesupport/ ') + '/include/rosidl_dynamic_typesupport/')\")",
],
}
],
Expand Down
2 changes: 2 additions & 0 deletions lib/distro.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const DistroId = {
FOXY: 2006,
GALACTIC: 2105,
HUMBLE: 2205,
IRON: 2305,
ROLLING: 5000,
};

Expand All @@ -31,6 +32,7 @@ DistroNameIdMap.set('eloquent', DistroId.ELOQUENT);
DistroNameIdMap.set('foxy', DistroId.FOXY);
DistroNameIdMap.set('galactic', DistroId.GALACTIC);
DistroNameIdMap.set('humble', DistroId.HUMBLE);
DistroNameIdMap.set('iron', DistroId.IRON);
DistroNameIdMap.set('rolling', DistroId.ROLLING);

const DistroUtils = {
Expand Down
2 changes: 1 addition & 1 deletion test/test-distro.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('rclnodejs distro utils', function () {
);
assert.equal(
distroNames.length,
5,
6,
'Incorrect number of known distro names'
);

Expand Down

0 comments on commit 23237ef

Please sign in to comment.