On Tuesday, April 30, 2013, Justin Stoller wrote:

> In lib/puppet_acceptance/cli.rb:
>
> > @@ -14,7 +14,12 @@ def initialize
> >        @config = PuppetAcceptance::TestConfig.new(@options[:config], @options)
> >
> >        if (@options[:helper])
> > -        require @options[:helper]
> > +        begin
> > +          require @options[:helper]
> > +        rescue LoadError
> > +          $LOAD_PATH.unshift(File.expand_path("../../../", __FILE__))
>
> So the helper is a user supplied file, but we're munging the path relative
> to a project file. I think munging from the process's CWD would be a more
> robust solution. ie with Andy's PR merged we would be able to run bundle
> exec systest ... from the actual Puppet repo (instead of the harness's
> root) and this would break in that configuration.
>

Sure, as long as we make sure to avoid changing directories until the
command line has been parsed.  I think I ran into an issue where thus
wasn't the case the first time I tried to fix this.


-- 
*Join us at PuppetConf 2013, August 22-23 in San Francisco - *
http://bit.ly/pupconf13*
**Register now and take advantage of the Early Bird discount - save 25%!*