Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable and update some module tests #1404

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

pkratoch
Copy link
Contributor

@pkratoch pkratoch commented Nov 9, 2023

Resolves: #1400

@pep8speaks
Copy link

pep8speaks commented Nov 9, 2023

Hello @pkratoch! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2023-11-21 09:32:22 UTC

@pkratoch pkratoch force-pushed the enable-module-tests branch from cb63769 to 1d9105f Compare November 9, 2023 12:49
@kontura kontura self-assigned this Nov 20, 2023
Comment on lines -50 to -51
cfg = ConfigParser()
cfg.read(glob.glob(cfgdir + '/*.module'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the ConfigParser and glob are no longer used should we also drop their imports?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I removed them.

@@ -12,8 +13,9 @@ Scenario: Check that only module packages including src are available
| berry-source | enabled | wood | |
When I execute dnf with args "repoquery berry"
Then the exit code is 0
And stdout is
And stdout matches line by line
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with the change, I am just curious why is it done?

Copy link
Contributor Author

@pkratoch pkratoch Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, for some reason I thought the "<REPOSYNC>" is checked only for "stdout matches line by line" and then forgot to check it and change it back. Thanks.

@pkratoch pkratoch force-pushed the enable-module-tests branch from 1d9105f to 4a32c75 Compare November 21, 2023 09:23
The returned dictionary is now a bit different: in case on an avaialable
module (i.e. module that is not enabled nor disabled), the "state" has
value "available" instead of empty string.
@pkratoch pkratoch force-pushed the enable-module-tests branch from 4a32c75 to 4b427d0 Compare November 21, 2023 09:32
Copy link
Contributor

@kontura kontura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@kontura kontura merged commit 4b3ac99 into rpm-software-management:main Nov 21, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "modules state is following" step alternative for DNF5
3 participants