summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-22 04:00:50 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-22 04:00:50 +0000
commit42c077fe97c5fc8814cc74ad1dd4f71023e883ea (patch)
tree8ceee875437038bc7888bfeaad23e0188fe4b2f3
parentf815654363f5a9c8a6915637fd77e36fb47eb515 (diff)
downloadpuppet-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.rb2
-rwxr-xr-xtest/test3
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
diff --git a/test/test b/test/test
index acea0fa25..8c2ad55d6 100755
--- a/test/test
+++ b/test/test
@@ -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