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.
This commit is contained in:
Christian Decker 2021-01-19 12:18:09 +01:00 committed by Rusty Russell
parent 6119f1f5fb
commit 1ea0dd6af2

View File

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