From f52ce2e2b3349342a92c7b5e7cdb5997948c28e3 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 23 Nov 2020 11:04:18 +0100
Subject: [PATCH] [T] Fixed a race condition between parsl and snakemake tests.

Both tests write to and read from the same files. Now they run after
another. Should fix sporadic CI errors.
---
 Applications/Utils/Tests.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Applications/Utils/Tests.cmake b/Applications/Utils/Tests.cmake
index c2adc02ffc8..e8d33f3d504 100644
--- a/Applications/Utils/Tests.cmake
+++ b/Applications/Utils/Tests.cmake
@@ -316,6 +316,10 @@ if(PARSL AND NOT OGS_USE_MPI)
             ${CMAKE_CURRENT_SOURCE_DIR}/ExtractBoundary.py
             ${PROJECT_BINARY_DIR}/buildinfo.yaml
     )
+    if(SNAKEMAKE)
+        # Prevent race-condition with snakemake test
+        set_tests_properties(parsl_ExtractBoundary PROPERTIES DEPENDS snakemake_ExtractBoundary)
+    endif()
 endif()
 
 AddTest(
-- 
GitLab