Skip to content

Commit

Permalink
test: Run Dockers only on Linux platforms
Browse files Browse the repository at this point in the history
Running a docker alternative only works if the platform
   is Linux

Signed-off-by: Willem Jan Withagen <[email protected]>
  • Loading branch information
wjwithagen committed Apr 11, 2021
1 parent d949768 commit 2386023
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,10 @@ if(PROMTOOL_EXECUTABLE)
"please use a newer prometheus")
endif()
else()
add_ceph_test(run-promtool-unittests
{CMAKE_CURRENT_SOURCE_DIR}/run-promtool-unittests.sh)
if(LINUX)
add_ceph_test(run-promtool-unittests
{CMAKE_CURRENT_SOURCE_DIR}/run-promtool-unittests.sh)
endif()
endif()

set_property(
Expand Down

0 comments on commit 2386023

Please sign in to comment.