]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed parallel test runs on macOS by always appending unique id, since with corpora...
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Sun, 20 Sep 2020 17:36:19 +0000 (10:36 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 23 Sep 2020 20:34:55 +0000 (22:34 +0200)
cmake/test-compress.cmake

index 338c7159ac42a4d88314c88af07dd5a63ffa2440..03878d8691a3a232913980f63262b2834408742c 100644 (file)
@@ -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}")