Skip to content

Fix failing specs when test host uses base service provider - #649

Open
jcharaoui wants to merge 1 commit into
OpenVoxProject:mainfrom
jcharaoui:service-spec-fix
Open

Fix failing specs when test host uses base service provider#649
jcharaoui wants to merge 1 commit into
OpenVoxProject:mainfrom
jcharaoui:service-spec-fix

Conversation

@jcharaoui

Copy link
Copy Markdown
Contributor

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:

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.

Checklist

I have:

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>
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.

1 participant