Fix failing specs when test host uses base service provider - #649
Open
jcharaoui wants to merge 1 commit into
Open
Fix failing specs when test host uses base service provider#649jcharaoui wants to merge 1 commit into
jcharaoui wants to merge 1 commit into
Conversation
In some build environments such as Debian's pbuilder, the host's /proc
might be mounted in the build environment, but the systemctl executable
is missing from the chroot, since it's not a strict build dependency.
In such environments, the base service provider will be selected, which
doesn't support the :enable parameter, leading to such failures:
Service[yay](provider=base) does not implement: enable
Instead of forcing the host's service provider to report support for
the enable parameter, simply skip the test when it isn't available.
Signed-off-by: Jérôme Charaoui <jerome@riseup.net>
jcharaoui
force-pushed
the
service-spec-fix
branch
from
September 5, 2026 18:51
e61f635 to
b52492b
Compare
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.
Short description
In some build environments such as Debian's pbuilder, the host's /proc might be mounted in the build environment, but the systemctl executable is missing from the chroot, since it's not a strict build dependency.
In such environments, the base service provider will be selected, which doesn't support the :enable parameter, leading to such failures:
Instead of forcing the host's service provider to report support for the enable parameter, simply skip the test when it isn't available.
Checklist
I have:
Signed-off-byannotation to each of my commitsGenerated-byorAssisted-byannotations to each of my commits created with the help of an AI agent