Skip to content

Commit

Permalink
Reduce the scope of the error reproduction
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pedro-psb committed Aug 22, 2024
1 parent eb143f8 commit d1ce469
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion pulp_rpm/tests/functional/api/test_rbac_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
RPM_FIXTURE_SUMMARY,
)


@pytest.mark.parallel
def test_rbac_repositories(gen_user, rpm_repository_factory, rpm_repository_api, monitor_task):
"""
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d1ce469

Please sign in to comment.