[openstack-dev] [puppet] how to run rspec tests? r10k issue
colleen at gazlene.net
Fri Feb 19 18:09:03 UTC 2016
On Thu, Feb 18, 2016 at 2:26 PM, Matt Fischer <matt at mattfischer.com> wrote:
> Is anyone able to share the secret of running spec tests since the r10k
> transition? bundle install && bundle exec rake spec have issues because
> r10k is not being installed. Since I'm not the only one hopefully this
> question will help others.
> + /var/lib/gems/1.9.1/bin/r10k puppetfile install -v
> line 51: /var/lib/gems/1.9.1/bin/r10k: No such file or directory
> rake aborted!
> The script is written with the assumption that gem binaries are installed
in $GEM_HOME/bin, because in our CI we install them to a local directory
and that's where bundler will put them. If you're used to just
installing gems with 'bundle install' with either system ruby or a ruby
version manager such as RVM or rbenv, it's possible that your binaries
don't end up in $GEM_HOME/bin. This was true for me using rbenv.
Our CI used to use sudo to install gems at the system level, which meant
binaries were just available in the normal PATH. It might be a good idea to
reconsider going back to that, since that would allow any ruby manager to
work normally with this script.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev