From 1c1cb99148008c3b10e83dc4102ea8224e705a5d Mon Sep 17 00:00:00 2001
From: Mark Owen <mark.andrew.owen@cern.ch>
Date: Wed, 30 Jan 2019 10:12:37 +0000
Subject: [PATCH] Run data decoding tests in different directories to avoid
 problems when running parrallel ctests

---
 MuonSpectrometer/MuonConfig/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/MuonSpectrometer/MuonConfig/CMakeLists.txt b/MuonSpectrometer/MuonConfig/CMakeLists.txt
index 360059848aa5..b5ec0f265afe 100644
--- a/MuonSpectrometer/MuonConfig/CMakeLists.txt
+++ b/MuonSpectrometer/MuonConfig/CMakeLists.txt
@@ -12,14 +12,18 @@ atlas_install_data( share/*.ref )
 
 # Configure unit tests
 # Cache alignment will change depending on whether FRONTIER_SERVER is defined.
+file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/unitTestRun_MuonDataDecodeTest )
 atlas_add_test( MuonDataDecodeTest
                 PROPERTIES TIMEOUT 1000
+                PROPERTIES WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/unitTestRun_MuonDataDecodeTest
                 EXTRA_PATTERNS "GeoModelSvc.MuonDetectorTool.*SZ=|Cache alignment|Range of input|recorded new|map from|DEBUG Reconciled configuration"
                 SCRIPT test/testMuonDataDecode.sh )
 
 # Adding an identical test for the ByteStream identifiable caches (and future RDO caches)
+file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/unitTestRun_MuonDataDecodeTest_Cache )
 atlas_add_test( MuonDataDecodeTest_Cache
                 PROPERTIES TIMEOUT 1000
+                PROPERTIES WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/unitTestRun_MuonDataDecodeTest_Cache
                 EXTRA_PATTERNS "GeoModelSvc.MuonDetectorTool.*SZ=|Cache alignment|Range of input|recorded new|map from"
                 SCRIPT test/testMuonDataDecode_Cache.sh )
 
-- 
GitLab