From d1ce4698a10db23fa54558436ffdfdcb8be184cd Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Thu, 22 Aug 2024 20:15:41 -0300 Subject: [PATCH] Reduce the scope of the error reproduction [noissue] --- .github/workflows/scripts/script.sh | 8 ++++---- pulp_rpm/tests/functional/api/test_rbac_crud.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/scripts/script.sh b/.github/workflows/scripts/script.sh index ab84d9d15..c45e8bd8e 100755 --- a/.github/workflows/scripts/script.sh +++ b/.github/workflows/scripts/script.sh @@ -145,11 +145,11 @@ if [ -f "$FUNC_TEST_SCRIPT" ]; then else if [[ "$GITHUB_WORKFLOW" =~ "Nightly" ]] then - cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m parallel -n 8 --nightly" - cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m 'not parallel' --nightly" + cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m run_only_this -n 8 --nightly" + # cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m 'not parallel' --nightly" else - cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m parallel -n 8" - cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m 'not parallel'" + cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m run_only_this -n 8" + # cmd_user_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_rpm.tests.functional -m 'not parallel'" fi fi export PULP_FIXTURES_URL="http://pulp-fixtures:8080" diff --git a/pulp_rpm/tests/functional/api/test_rbac_crud.py b/pulp_rpm/tests/functional/api/test_rbac_crud.py index cf21ac410..924cb6be4 100644 --- a/pulp_rpm/tests/functional/api/test_rbac_crud.py +++ b/pulp_rpm/tests/functional/api/test_rbac_crud.py @@ -11,7 +11,6 @@ RPM_FIXTURE_SUMMARY, ) - @pytest.mark.parallel def test_rbac_repositories(gen_user, rpm_repository_factory, rpm_repository_api, monitor_task): """ @@ -336,6 +335,7 @@ def test_rbac_publication( assert not any(p.repository != repository.pulp_href for p in publications) +@pytest.mark.run_only_this @pytest.mark.parallel def test_rbac_distribution( gen_user, @@ -442,6 +442,7 @@ def test_rbac_distribution( assert rpm_rpmremote_api.list(name=remote.name).count == 0 +@pytest.mark.run_only_this @pytest.mark.parallel def test_rbac_content_scoping( gen_user,