summaryrefslogtreecommitdiff
path: root/test/Rakefile
diff options
context:
space:
mode:
authorerikh <erikh@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-20 14:44:06 +0000
committererikh <erikh@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-20 14:44:06 +0000
commite88bf774d53911a8e30ed52f0a4685d382d56d91 (patch)
tree2d31f3887273565330061fbbd86220d5ded59793 /test/Rakefile
parentbc15e049826fea2ef88e2e6d1bc031835a078b77 (diff)
downloadpuppet-e88bf774d53911a8e30ed52f0a4685d382d56d91.tar.gz
Rake::TestTasks were running the test suite inadvertantly against the installed tree instead of the development tree due to a botched "libs" setting.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1636 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/Rakefile')
-rw-r--r--test/Rakefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Rakefile b/test/Rakefile
index 463c7a9a1..3918d127e 100644
--- a/test/Rakefile
+++ b/test/Rakefile
@@ -4,6 +4,7 @@ include Find
include FileTest
$exclusions = %W(lib data)
+$test_library_paths = %W(lib ../lib)
$test_dirs = [] # this is used to generate all the targets.
$test_files = [] # this is ONLY used for the top-level test suite.
@@ -27,7 +28,7 @@ end
desc "Run the full test suite"
Rake::TestTask.new 'test' do |t|
- t.libs << 'lib'
+ t.libs << $test_library_paths
t.test_files = $test_files.sort
t.verbose = true
end
@@ -47,7 +48,7 @@ $test_dirs.sort.each do |path|
end
Rake::TestTask.new path.to_sym do |t|
- t.libs << 'lib'
+ t.libs << $test_library_paths
t.test_files = files.sort
t.verbose = true
end
@@ -57,7 +58,7 @@ $test_dirs.sort.each do |path|
namespace path.to_sym do
files.each do |file|
Rake::TestTask.new File.basename(file, '.rb').to_sym do |t|
- t.libs << '..'
+ t.libs << $test_library_paths + ['..']
t.test_files = [ file ]
t.verbose = true
end