ci: prevent multithreading for subplot tests

- There is only one virtual card, accessing it from multiple programs
    in parallel leads to undefined behavior.
This commit is contained in:
Nora Widdecke 2022-10-27 21:59:25 +02:00
parent 09c554affd
commit 8c9d792c42
No known key found for this signature in database
GPG key ID: 2D4111B31DBB99B6
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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'