Issue #9544 has been updated by Stefan Schulte.
Hm, one could surround the
<pre>
update_eix if !FileUtils.uptodate?("/var/cache/eix", %w{/usr/bin/eix
/usr/portage/metadata/timestamp})
</pre>
in `puppet/provider/portage.rb` in an `if Puppet.features.root?` clause or stub
`uptodate` or `update_eix` in the specfile.
On the other hand I never encountered the problem again but if I run into this
again or someone else comments here because he has the same problem I might
implement one of the last two mentioned possibilities.
----------------------------------------
Bug #9544: package spec may fail if not run as root
https://projects.puppetlabs.com/issues/9544
Author: Stefan Schulte
Status: Needs More Information
Priority: Low
Assignee: Stefan Schulte
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
The specfile `spec/integration/provider/package_spec.rb` seems to test the
instances method of the appropiate package provider (depending on the system
that is running the test). The test can fail if the `instances` method requires
extra privileges the user who is running the tests does not have.
On my gentoo system I get the following error:
1) Package provider portage should be able to get a list of existing
packages
Failure/Error: provider.instances.each do |package|
Puppet::Error:
Execution of '/usr/bin/eix-update' returned 1: You must be in the
portage group to update the database.
Set SKIP_PERMISSION_TESTS=true to skip this test (e.g. if you use
NSS/LDAP).
# ./lib/puppet/provider/package/portage.rb:46:in `instances'
# ./spec/integration/provider/package_spec.rb:26
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.