From 2386023ca88191b0f28fbad517001afb0ee35be9 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Sun, 11 Apr 2021 14:46:17 +0200 Subject: [PATCH] test: Run Dockers only on Linux platforms Running a docker alternative only works if the platform is Linux Signed-off-by: Willem Jan Withagen --- src/test/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 5ead748421326..772aeaddeff7c 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -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( -- 2.39.5