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/util | |
| 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/util')
| -rwxr-xr-x | test/util/classgen.rb | 4 | ||||
| -rwxr-xr-x | test/util/execution.rb | 4 | ||||
| -rwxr-xr-x | test/util/package.rb | 4 | ||||
| -rwxr-xr-x | test/util/utiltest.rb | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/test/util/classgen.rb b/test/util/classgen.rb index e1c9644a4..2e8374437 100755 --- a/test/util/classgen.rb +++ b/test/util/classgen.rb @@ -1,4 +1,6 @@ -#!/usr/bin/env ruby -I../lib -I../../lib +#!/usr/bin/env ruby + +$:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppet' require 'puppettest' diff --git a/test/util/execution.rb b/test/util/execution.rb index 45c3a3b07..0b3541775 100755 --- a/test/util/execution.rb +++ b/test/util/execution.rb @@ -1,4 +1,6 @@ -#!/usr/bin/env ruby -I../lib -I../../lib +#!/usr/bin/env ruby + +$:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppet' require 'puppettest' diff --git a/test/util/package.rb b/test/util/package.rb index 5ea5570f7..73b069f84 100755 --- a/test/util/package.rb +++ b/test/util/package.rb @@ -1,4 +1,6 @@ -#!/usr/bin/env ruby -I../lib -I../../lib +#!/usr/bin/env ruby + +$:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppet' require 'puppet/util/package' diff --git a/test/util/utiltest.rb b/test/util/utiltest.rb index 96af3c017..1ab2ebb9c 100755 --- a/test/util/utiltest.rb +++ b/test/util/utiltest.rb @@ -1,4 +1,6 @@ -#!/usr/bin/env ruby -I../lib -I../../lib +#!/usr/bin/env ruby + +$:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppet' require 'puppettest' |
