From: Nathan Moinvaziri Date: Sun, 20 Sep 2020 17:36:19 +0000 (-0700) Subject: Fixed parallel test runs on macOS by always appending unique id, since with corpora... X-Git-Tag: 1.9.9-b1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48086700c5533ce629104ca789e6cec7151c0b79;p=thirdparty%2Fzlib-ng.git Fixed parallel test runs on macOS by always appending unique id, since with corpora repository, multiple tests can have the same output name. --- diff --git a/cmake/test-compress.cmake b/cmake/test-compress.cmake index 338c7159a..03878d869 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}")