diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 39fbbba7745867ec96b00a18beb35c75d94b9a2e..1f02f0442879ee6c9192d0c5d758b1e06ec478d3 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 ############