From ec47a349e4c3e845042d77b3f8801cd87d31065e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Fri, 21 Jan 2022 22:56:50 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39fbbba..1f02f04 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -145,12 +145,12 @@ stages: - catkin_make - roscd wolf_demo_laser2d/bag - wget https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_ros/demos/demo_rosbags/-/raw/master/laser2d/advanced.bag - - roslaunch_output=$(roslaunch wolf_demo_laser2d demo_laser2d.launch rviz:=false bag:=advanced) - - echo "$roslaunch_output" - - if [[ "$roslaunch_output" == *"process has finished cleanly"* ]]; then + - roslaunch wolf_demo_laser2d demo_laser2d.launch rviz:=false bag:=advanced 2> roslaunch_error_messages.log + - cat roslaunch_error_messages.log + - if [[ "$(cat roslaunch_error_messages.log)" == *"process has finished cleanly"* ]]; then - echo "=============\rROSLAUNCH FINISHED WITHOUT ANY PROBLEM!\r================="; - else - - exit 1 + - exit 1 - fi ############ UBUNTU 16.04 TEST ############ -- GitLab