From 8c9d792c42c1c6616016d311a0653d5704c162f4 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Thu, 27 Oct 2022 21:59:25 +0200 Subject: [PATCH] ci: prevent multithreading for subplot tests - There is only one virtual card, accessing it from multiple programs in parallel leads to undefined behavior. --- .gitlab-ci.yml | 2 +- tools/cargo-test-in-docker | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3619570..8380575 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -149,7 +149,7 @@ subplot: script: # make sure a virtual card is available, so that the subplot tests are # generated - - CARD_BASED_TESTS=true cargo test + - CARD_BASED_TESTS=true cargo test -- --test-threads 1 cache: # inherit all general cache settings <<: *general_cache_config diff --git a/tools/cargo-test-in-docker b/tools/cargo-test-in-docker index acece79..b369ac8 100755 --- a/tools/cargo-test-in-docker +++ b/tools/cargo-test-in-docker @@ -23,4 +23,4 @@ su - -c "sh /home/jcardsim/run-card.sh >/dev/null" jcardsim && cd /src/tools && CARGO_TARGET_DIR=/cargo/ cargo update && CARGO_TARGET_DIR=/cargo/ cargo build -vv && -CARGO_TARGET_DIR=/cargo/ cargo test' +CARGO_TARGET_DIR=/cargo/ cargo test -- --test-threads 1'