diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-22 04:00:50 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-22 04:00:50 +0000 |
commit | 42c077fe97c5fc8814cc74ad1dd4f71023e883ea (patch) | |
tree | 8ceee875437038bc7888bfeaad23e0188fe4b2f3 | |
parent | f815654363f5a9c8a6915637fd77e36fb47eb515 (diff) | |
download | puppet-42c077fe97c5fc8814cc74ad1dd4f71023e883ea.tar.gz puppet-42c077fe97c5fc8814cc74ad1dd4f71023e883ea.tar.xz puppet-42c077fe97c5fc8814cc74ad1dd4f71023e883ea.zip |
updates from os x
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@748 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r-- | test/puppettest.rb | 2 | ||||
-rwxr-xr-x | test/test | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/puppettest.rb b/test/puppettest.rb index e2c620bb8..0bd7d80c5 100644 --- a/test/puppettest.rb +++ b/test/puppettest.rb @@ -41,7 +41,7 @@ module TestPuppet @@tmpfiles = [@configpath, tmpdir()] @@tmppids = [] - if $0 =~ /.+\.rb/ + if $0 =~ /.+\.rb/ or Puppet[:debug] Puppet[:logdest] = :console Puppet[:loglevel] = :debug $VERBOSE = 1 @@ -15,6 +15,7 @@ require 'getoptlong' #[ "--size", "-s", GetoptLong::REQUIRED_ARGUMENT ], result = GetoptLong.new( + [ "--debug", "-d", GetoptLong::NO_ARGUMENT ], [ "--help", "-h", GetoptLong::NO_ARGUMENT ] ) @@ -22,6 +23,8 @@ usage = "USAGE: %s [--help] <testsuite> <testsuite> .." % $0 result.each { |opt,arg| case opt + when "--debug" + Puppet[:debug] = true when "--help" puts usage exit |