summaryrefslogtreecommitdiffstats
path: root/test/lib/rake
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-01 05:13:37 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-01 05:13:37 +0000
commit2c79bbfe15c464bbf41a8b80f4aaff1d476a6b98 (patch)
tree3766e59542b6aa2fbb6b977ce83e7dc11a4894bd /test/lib/rake
parent38362016f97c891f4b5b0d1fb38f8491c8eeac05 (diff)
downloadpuppet-2c79bbfe15c464bbf41a8b80f4aaff1d476a6b98.tar.gz
puppet-2c79bbfe15c464bbf41a8b80f4aaff1d476a6b98.tar.xz
puppet-2c79bbfe15c464bbf41a8b80f4aaff1d476a6b98.zip
Oops, that last commit seems to have broken the rakefile. Works again.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2147 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib/rake')
-rw-r--r--test/lib/rake/puppet_test_loader.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/lib/rake/puppet_test_loader.rb b/test/lib/rake/puppet_test_loader.rb
index 2bc03aa07..83531c677 100644
--- a/test/lib/rake/puppet_test_loader.rb
+++ b/test/lib/rake/puppet_test_loader.rb
@@ -1,14 +1,13 @@
require 'test/unit/autorunner'
require 'getoptlong'
+require 'puppettest'
-result = GetoptLong.new(
- [ "--debug", "-d", GetoptLong::NO_ARGUMENT ],
- [ "-n", GetoptLong::REQUIRED_ARGUMENT ],
- [ "--help", "-h", GetoptLong::NO_ARGUMENT ]
-)
+args = PuppetTest.munge_argv
-ARGV.each { |f| require f unless f =~ /^-/ }
+p $puppet_debug
+
+args.each { |f| require f unless f =~ /^-/ }
runner = Test::Unit::AutoRunner.new(false)
runner.process_args