Skip to content

Commit c000001

Browse files
authored
Fix regexp version check in tests (#221)
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
1 parent f06da5a commit c000001

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ jobs:
265265
run: |
266266
source /opt/ros/humble/setup.bash
267267
ros2 pkg list | grep ros_gz
268-
gz sim --version | grep 'version 8.[0-9*].[0-9*]'
268+
gz sim --version | grep -E 'version 8\.[0-9]+\.[0-9]+'
269269
270270
test_install_ros_gz_official:
271271
name: 'Install Humble and Fortress side-by-side'
@@ -324,7 +324,7 @@ jobs:
324324
source /opt/ros/jazzy/setup.bash
325325
! [ $(apt list --installed gz-harmonic) ]
326326
ros2 pkg list | grep ros_gz
327-
gz sim --version | grep 'version 8.[0-9*].[0-9*]'
327+
gz sim --version | grep -E 'version 8\.[0-9]+\.[0-9]+'
328328
329329
test_install_ros_gz_kilted:
330330
name: 'Install Ionic on Kilted through vendor packages'
@@ -354,4 +354,4 @@ jobs:
354354
source /opt/ros/kilted/setup.bash
355355
! [ $(apt list --installed gz-ionic) ]
356356
ros2 pkg list | grep ros_gz
357-
gz sim --version | grep 'version 9.[0-9*].[0-9*]'
357+
gz sim --version | grep -E 'version 9\.[0-9]+\.[0-9]+'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ This example shows the installation of ROS 2 Jazzy and Gazebo Harmonic which is
302302
source /opt/ros/jazzy/setup.bash
303303
! [ $(apt list --installed gz-harmonic) ]
304304
ros2 pkg list | grep ros_gz
305-
gz sim --version | grep 'version 8.[0-9*].[0-9*]'
305+
gz sim --version | grep -E 'version 8\.[0-9]+\.[0-9]+'
306306
```
307307

308308
- *Installing ROS 2 Kilted with Gazebo Ionic*
@@ -336,7 +336,7 @@ This example shows the installation of ROS 2 Kilted and Gazebo Ionic. Kilted use
336336
source /opt/ros/kilted/setup.bash
337337
! [ $(apt list --installed gz-ionic) ]
338338
ros2 pkg list | grep ros_gz
339-
gz sim --version | grep 'version 9.[0-9*].[0-9*]'
339+
gz sim --version | grep -E 'version 9\.[0-9]+\.[0-9]+'
340340
```
341341

342342
### macOS

0 commit comments

Comments
 (0)