From 48086700c5533ce629104ca789e6cec7151c0b79 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Sun, 20 Sep 2020 10:36:19 -0700 Subject: [PATCH] Fixed parallel test runs on macOS by always appending unique id, since with corpora repository, multiple tests can have the same output name. --- cmake/test-compress.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/test-compress.cmake b/cmake/test-compress.cmake index 338c7159..03878d86 100644 --- a/cmake/test-compress.cmake +++ b/cmake/test-compress.cmake @@ -26,8 +26,13 @@ endif() # Generate unique output path so multiple tests can be executed at the same time if(NOT OUTPUT) + # Output name based on input and unique id string(RANDOM UNIQUE_ID) set(OUTPUT ${INPUT}-${UNIQUE_ID}) +else() + # Output name appends unique id in case multiple tests with same output name + string(RANDOM LENGTH 6 UNIQUE_ID) + set(OUTPUT ${OUTPUT}-${UNIQUE_ID}) endif() string(REPLACE ".gz" "" OUTPUT "${OUTPUT}") -- 2.47.3