diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-16 22:01:40 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-16 22:01:40 +0000 |
| commit | 9e5ea8c2c52f3d4b48fa01eb56264b323a2c4581 (patch) | |
| tree | 86527a7e02b0cff8893d7f8699af3e82db37d33a /test/lib | |
| parent | 72688e3444c96655cf108099a0db92ed6b6bd91f (diff) | |
| download | puppet-9e5ea8c2c52f3d4b48fa01eb56264b323a2c4581.tar.gz puppet-9e5ea8c2c52f3d4b48fa01eb56264b323a2c4581.tar.xz puppet-9e5ea8c2c52f3d4b48fa01eb56264b323a2c4581.zip | |
Fixing the test scripts so that the library path
is modified in ruby instead of in the env line
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1793 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib')
| -rwxr-xr-x | test/lib/puppettest.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb index c8c8b077d..55a502b8c 100755 --- a/test/lib/puppettest.rb +++ b/test/lib/puppettest.rb @@ -11,10 +11,11 @@ module PuppetTest @@basedir = File.dirname(Dir.getwd) else dir = nil - if $0 =~ /^#{File::SEPARATOR}.+\.rb/ - dir = $0 + app = $0.sub /^\.\//, "" + if app =~ /^#{File::SEPARATOR}.+\.rb/ + dir = app else - dir = File.join(Dir.getwd, $0) + dir = File.join(Dir.getwd, app) end 3.times { dir = File.dirname(dir) } @@basedir = dir |
