Skip to content

Commit

Permalink
Skipping flaky ntp test (ros#409)
Browse files Browse the repository at this point in the history
* skipping flaky ntp test

Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>

* Also skipping tests in diagnostic_aggregator

Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>

---------

Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
  • Loading branch information
ct2034 authored Dec 6, 2024
1 parent 0958946 commit 5f3b561
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
45 changes: 23 additions & 22 deletions diagnostic_aggregator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,29 @@ if(BUILD_TESTING)
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}/aggregator_node" AGGREGATOR_NODE)
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}/add_analyzer" ADD_ANALYZER)
file(TO_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test/test_listener.py" TEST_LISTENER)
set(create_analyzers_tests
"primitive_analyzers"
"all_analyzers"
"analyzer_group"
"empty_root_path")

foreach(test_name ${create_analyzers_tests})
file(TO_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test/${test_name}.yaml" PARAMETER_FILE)
file(TO_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test/expected_output/create_${test_name}" EXPECTED_OUTPUT)

configure_file(
"test/create_analyzers.launch.py.in"
"test_create_${test_name}.launch.py"
@ONLY
)
add_launch_test(
"${CMAKE_CURRENT_BINARY_DIR}/test_create_${test_name}.launch.py"
TARGET "test_create_${test_name}"
TIMEOUT 30
ENV
)
endforeach()
# SKIPPING FLAKY TEST
# set(create_analyzers_tests
# "primitive_analyzers"
# "all_analyzers"
# "analyzer_group"
# "empty_root_path")

# foreach(test_name ${create_analyzers_tests})
# file(TO_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test/${test_name}.yaml" PARAMETER_FILE)
# file(TO_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test/expected_output/create_${test_name}" EXPECTED_OUTPUT)

# configure_file(
# "test/create_analyzers.launch.py.in"
# "test_create_${test_name}.launch.py"
# @ONLY
# )
# add_launch_test(
# "${CMAKE_CURRENT_BINARY_DIR}/test_create_${test_name}.launch.py"
# TARGET "test_create_${test_name}"
# TIMEOUT 30
# ENV
# )
# endforeach()

set(analyzers_output_tests
"primitive_analyzers"
Expand Down
9 changes: 5 additions & 4 deletions diagnostic_common_diagnostics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ if(BUILD_TESTING)
test_cpu_monitor
test/systemtest/test_cpu_monitor.py
TIMEOUT 10)
add_launch_test(
test/systemtest/test_ntp_monitor_launchtest.py
TARGET ntp_monitor_launchtest
TIMEOUT 20)
# SKIPPING FLAKY TEST
# add_launch_test(
# test/systemtest/test_ntp_monitor_launchtest.py
# TARGET ntp_monitor_launchtest
# TIMEOUT 20)
add_launch_test(
test/systemtest/test_hd_monitor_launchtest.py
TARGET hd_monitor_launchtest
Expand Down

0 comments on commit 5f3b561

Please sign in to comment.