Filter pulp-cli livetest to the plugin under test#1037
Merged
Conversation
When pulp-cli 0.40.0+ is checked out it no longer ships test_requirements.txt, so plugin CI fell back to make livetest and ran the entire live suite. Pass PYTEST_MARK to livetest so only the relevant plugin tests run, e.g. live and pulp_container.
ggainey
approved these changes
Jun 8, 2026
| {%- endif %} | ||
| # some pulp-cli tests use the api root envvar | ||
| export PULP_API_ROOT="$(EDITOR=cat pulp config edit 2>/dev/null | awk -F'"' '/api_root/{print $2; exit}')" | ||
| {%- set cli_plugin_markers = plugins | map(attribute='name') | join(' or ') | snake %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PYTEST_MARK="live and (<plugin markers>)"when invokingmake livetestfor pulp-cli 0.40.0+, which no longer shipstest_requirements.txttest_requirements.txtand run filtered pytest directlyDepends on pulp/pulp-cli#1419, which adds the
PYTEST_MARKvariable to the pulp-cli Makefile.Test plan
script.shuses the filtered livetest invocationtest_requirements.txt+pytest -m "<plugin>"make livetest PYTEST_MARK="live and pulp_container"(or equivalent for multi-plugin repos)Made with Cursor