Skip to content

Commit

Permalink
fixed prints
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Dec 16, 2023
1 parent 732c348 commit c569702
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
find_package(rostest REQUIRED)
find_package(catkin REQUIRED COMPONENTS mrs_uav_testing)

# will test takeoff in mrs simulator
add_subdirectory(takeoff)
Expand Down
10 changes: 10 additions & 0 deletions test/compile_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -e

trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR

# build the package
catkin build --this # it has to be fully built normally before building with --catkin-make-args tests
catkin build --this --no-deps --catkin-make-args tests
2 changes: 1 addition & 1 deletion test/gazebo_takeoff/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ bool Tester::test() {
auto [success, message] = takeoff();

if (!success) {
ROS_ERROR("[%s]: midair activation failed with message: '%s'", ros::this_node::getName().c_str(), message.c_str());
ROS_ERROR("[%s]: takeoff failed with message: '%s'", ros::this_node::getName().c_str(), message.c_str());
return false;
}
}
Expand Down

0 comments on commit c569702

Please sign in to comment.