From 01af4bed58d7b58f1bd05f9576c5aa12d9f497a5 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Thu, 16 Jan 2025 13:52:54 +0100 Subject: [PATCH] Only add additional properties to minio_storage test if it is included --- examples/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 30557c297..b030d41e6 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -114,17 +114,19 @@ if(FORCE_EXAMPLES OR EXISTS ${CMAKE_INSTALL_PREFIX}/share/dlite/examples) SKIP_RETURN_CODE 44) endforeach() + + # Special properties on minio_storage for not hanging when the MinIO + # playground is not responding or when the storage is full + set_property(TEST minio_storage APPEND PROPERTY + ENVIRONMENT "TIMEOUT=5" + ) + set_property(TEST minio_storage PROPERTY + SKIP_REGULAR_EXPRESSION "(XMinioStorageFull)|(subprocess.TimeoutExpired)" + ) + endif() -# Special properties on minio_storage for not hanging when the MinIO -# playground is not responding or when the storage is full -set_property(TEST minio_storage APPEND PROPERTY - ENVIRONMENT "TIMEOUT=5" -) -set_property(TEST minio_storage PROPERTY - SKIP_REGULAR_EXPRESSION "(XMinioStorageFull)|(subprocess.TimeoutExpired)" -)