From 29588c2967cc304f4256f6ca41dd4a2e6ed96146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 16 Oct 2023 14:02:13 +0200 Subject: [PATCH] Don't use pytest-xdist in ELN pytest-xdist is unwanted in ELN, this package brought it in. --- awscli2.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awscli2.spec b/awscli2.spec index df9d56a..f5911e2 100644 --- a/awscli2.spec +++ b/awscli2.spec @@ -66,12 +66,14 @@ find -type f -name '*.py' -exec sed \ # Fedora does not run coverage tests. # mock is deprecated in Fedora. We use unittest.mock. # pip-tools is not used directly by the unit tests. +# pytest-xdist is unwanted in RHEL. sed \ -e 's|==.*||' \ -e '/coverage/d' \ -e '/mock/d' \ -e '/pip-tools/d' \ -e '/pytest-cov/d' \ + %{?rhel:-e '/pytest-xdist/d'} \ requirements-test.txt > _requirements-test.txt @@ -107,7 +109,7 @@ export TESTS_REMOVE_REPO_ROOT_FROM_PATH=1 TZ=UTC %if 0%{?rhel} export OPENSSL_ENABLE_SHA1_SIGNATURES=yes %endif -%pytest --verbose --numprocesses=auto --dist=loadfile tests/unit tests/functional +%pytest --verbose %{!?rhel:--numprocesses=auto --dist=loadfile} tests/unit tests/functional %files -f %{pyproject_files}