Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completely rewritten spin, backup, and drive on heading tests to remove flakiness #4515

Merged
merged 9 commits into from
Jul 3, 2024
4 changes: 2 additions & 2 deletions nav2_system_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ if(BUILD_TESTING)
# add_subdirectory(src/gps_navigation)
add_subdirectory(src/behaviors/wait)
add_subdirectory(src/behaviors/spin)
# add_subdirectory(src/behaviors/backup)
# add_subdirectory(src/behaviors/drive_on_heading)
add_subdirectory(src/behaviors/backup)
add_subdirectory(src/behaviors/drive_on_heading)
add_subdirectory(src/behaviors/assisted_teleop)
add_subdirectory(src/costmap_filters)
add_subdirectory(src/error_codes)
Expand Down
23 changes: 4 additions & 19 deletions nav2_system_tests/src/behaviors/backup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
set(test_backup_behavior test_backup_behavior_node)

ament_add_gtest_executable(${test_backup_behavior}
test_backup_behavior_node.cpp
backup_behavior_tester.cpp
)

ament_target_dependencies(${test_backup_behavior}
${dependencies}
)

ament_add_test(test_backup_recovery
ament_add_test(test_backup_behavior
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test_backup_behavior_launch.py"
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test_backup_behavior.launch.py"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
TIMEOUT 180
TIMEOUT 60
ENV
TEST_MAP=${PROJECT_SOURCE_DIR}/maps/map_circular.yaml
TEST_EXECUTABLE=$<TARGET_FILE:${test_backup_behavior}>
TEST_WORLD=${PROJECT_SOURCE_DIR}/worlds/turtlebot3_ros2_demo.world
GAZEBO_MODEL_PATH=${PROJECT_SOURCE_DIR}/models
BT_NAVIGATOR_XML=navigate_to_pose_w_replanning_and_recovery.xml
TEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}
)
223 changes: 0 additions & 223 deletions nav2_system_tests/src/behaviors/backup/backup_behavior_tester.cpp

This file was deleted.

90 changes: 0 additions & 90 deletions nav2_system_tests/src/behaviors/backup/backup_behavior_tester.hpp

This file was deleted.

Loading
Loading