summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-01 01:19:52 +0000
committerlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-01 01:19:52 +0000
commit12bf8163eff417a7014ca7f9d223c0f01719d3d1 (patch)
treef788f80b5952b6620e55ade79c8b255f7037623b
parent18eebaf87e14db77dce9114078501efe7392fba4 (diff)
downloadpuppet-12bf8163eff417a7014ca7f9d223c0f01719d3d1.tar.gz
puppet-12bf8163eff417a7014ca7f9d223c0f01719d3d1.tar.xz
puppet-12bf8163eff417a7014ca7f9d223c0f01719d3d1.zip
Fix to make running tests work in ruby 1.8.5
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2143 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--test/lib/rake/puppet_test_loader.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/lib/rake/puppet_test_loader.rb b/test/lib/rake/puppet_test_loader.rb
index 3b9e58a60..cd91623b8 100644
--- a/test/lib/rake/puppet_test_loader.rb
+++ b/test/lib/rake/puppet_test_loader.rb
@@ -1,12 +1,11 @@
-#!/usr/bin/env ruby
require 'test/unit/autorunner'
+ARGV.each { |f| require f unless f =~ /^-/ }
+
runner = Test::Unit::AutoRunner.new(false)
runner.process_args
-ARGV.each { |f| load f unless f =~ /^-/ }
-
runner.run
# $Id$