From 1ea0dd6af213364e8bb38088608d4f953e9b89b2 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 19 Jan 2021 12:18:09 +0100 Subject: [PATCH] gci: Add pytest.ini in order to randomize the groups We have a couple of very heavy tests bunched together, randomization could potentially lessen the peak load. --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4f3260663..58f1ed3fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -183,6 +183,13 @@ jobs: ./configure CC="$CC" cat config.vars + cat << 'EOF' > pytest.ini + [pytest] + addopts=-p no:logging --color=yes --timeout=1800 --timeout-method=thread --test-group-random-seed=42 + markers = + slow_test: marks tests as slow (deselect with '-m "not slow_test"') + EOF + if [ "$TARGET_HOST" == "arm-linux-gnueabihf" ] || [ "$TARGET_HOST" == "aarch64-linux-gnu" ] then export QEMU_LD_PREFIX=/usr/"$TARGET_HOST"/