<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 18, 2016 at 2:26 PM, Matt Fischer <span dir="ltr"><<a href="mailto:matt@mattfischer.com" target="_blank">matt@mattfischer.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div><div>+ PUPPETFILE=/etc/puppet/modules/keystone/openstack/puppet-openstack-integration/Puppetfile</div><div>+ /var/lib/gems/1.9.1/bin/r10k puppetfile install -v</div><div>/etc/puppet/modules/keystone/openstack/puppet-openstack-integration/functions: line 51: /var/lib/gems/1.9.1/bin/r10k: No such file or directory</div><div>rake aborted!</div></div></div>
<br></blockquote><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Colleen</div><div><br></div><div>[1] <a href="http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n15">http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n15</a></div></div></div></div>