summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-02-14 09:29:55 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-02-14 09:29:55 +1100
commit0c457ee6373d436729a5d3492ca25a02c568103d (patch)
treec120078443ea368f94b5d51ad1dc1265234226cb /test
parent9f224f2327ca691f4263e36708ef4e7386b2c4b4 (diff)
parent0cfa1d2b7ae38020d3b845d7713cb10cda7facef (diff)
downloadpuppet-0c457ee6373d436729a5d3492ca25a02c568103d.tar.gz
puppet-0c457ee6373d436729a5d3492ca25a02c568103d.tar.xz
puppet-0c457ee6373d436729a5d3492ca25a02c568103d.zip
Merge branch '0.24.x' of git://reductivelabs.com/puppet into 0.24.x
Diffstat (limited to 'test')
-rwxr-xr-xtest/executables/puppetbin.rb17
-rwxr-xr-xtest/lib/puppettest.rb1
2 files changed, 17 insertions, 1 deletions
diff --git a/test/executables/puppetbin.rb b/test/executables/puppetbin.rb
index 218787c92..08329efb6 100755
--- a/test/executables/puppetbin.rb
+++ b/test/executables/puppetbin.rb
@@ -83,5 +83,22 @@ class TestPuppetBin < Test::Unit::TestCase
assert(FileTest.exists?(path), "Failed to create config'ed file")
end
+
+ def test_parseonly
+ path = tempfile()
+ manifest = tempfile()
+ puppet = %x{which puppet}.chomp
+ if puppet == ""
+ Puppet.info "cannot find puppet; cannot test parseonly"
+ return
+ end
+ code = 'File <<| |>>
+ include nosuchclass'
+
+ assert_nothing_raised {
+ IO.popen("#{puppet} --parseonly", 'w') { |p| p.puts code }
+ }
+ assert($? == 0, "parseonly test exited with code %s" % $?.to_i)
+ end
end
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb
index 6c95985bf..64cb7aebe 100755
--- a/test/lib/puppettest.rb
+++ b/test/lib/puppettest.rb
@@ -315,7 +315,6 @@ module PuppetTest
rescue Timeout::Error
# just move on
end
- mocha_verify
end
def logstore