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

Fix is_masked method on systemd service #569

Merged
merged 4 commits into from
Sep 3, 2020
Merged

Fix is_masked method on systemd service #569

merged 4 commits into from
Sep 3, 2020

Conversation

dorianm
Copy link
Contributor

@dorianm dorianm commented Sep 3, 2020

Hi

I'm sorry but I introduced a bug with my PR #568. The systemcl is-enabled command doesn't return 0 when the service is not enabled. So my check cmd.rc == 0 was not relevant in this case.

Sorry for this bug. I add on test to check if my code is valid. This time, it should be ok !

dorianm and others added 2 commits September 3, 2020 08:26
`systemctl is-enabled my-service` rc is 1 if the service is masked.
test/test_modules.py Outdated Show resolved Hide resolved
test/test_modules.py Outdated Show resolved Hide resolved
@philpep philpep merged commit ce543e2 into pytest-dev:master Sep 3, 2020
@philpep
Copy link
Contributor

philpep commented Sep 3, 2020

Merged with some simplification of the test. Thanks! This will released as 5.3.1 asap

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.

2 participants