diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-01 05:13:37 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-01 05:13:37 +0000 |
| commit | 2c79bbfe15c464bbf41a8b80f4aaff1d476a6b98 (patch) | |
| tree | 3766e59542b6aa2fbb6b977ce83e7dc11a4894bd /test/lib | |
| parent | 38362016f97c891f4b5b0d1fb38f8491c8eeac05 (diff) | |
| download | puppet-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')
| -rwxr-xr-x | test/lib/puppettest.rb | 10 | ||||
| -rw-r--r-- | test/lib/rake/puppet_test_loader.rb | 11 |
2 files changed, 10 insertions, 11 deletions
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb index bc6643840..cda91e77b 100755 --- a/test/lib/puppettest.rb +++ b/test/lib/puppettest.rb @@ -163,11 +163,7 @@ module PuppetTest # If we're running under rake, then disable debugging and such. #if rake? or ! Puppet[:debug] - if rake? or ! defined?($puppet_debug) - Puppet::Log.close - Puppet::Log.newdestination tempfile() - Puppet[:httplog] = tempfile() - else + if defined?($puppet_debug) or ! rake? if textmate? Puppet[:color] = false end @@ -176,6 +172,10 @@ module PuppetTest #$VERBOSE = 1 Puppet.info @method_name Puppet[:trace] = true + else + Puppet::Log.close + Puppet::Log.newdestination tempfile() + Puppet[:httplog] = tempfile() end Puppet[:ignoreschedules] = true 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 |
