On Thu, Feb 18, 2016 at 2:26 PM, Matt Fischer <m...@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. > > + > PUPPETFILE=/etc/puppet/modules/keystone/openstack/puppet-openstack-integration/Puppetfile > + /var/lib/gems/1.9.1/bin/r10k puppetfile install -v > /etc/puppet/modules/keystone/openstack/puppet-openstack-integration/functions: > 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[1]. 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. Colleen [1] http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n15
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev