diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-02-14 09:29:55 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-02-14 09:29:55 +1100 |
| commit | 0c457ee6373d436729a5d3492ca25a02c568103d (patch) | |
| tree | c120078443ea368f94b5d51ad1dc1265234226cb /test | |
| parent | 9f224f2327ca691f4263e36708ef4e7386b2c4b4 (diff) | |
| parent | 0cfa1d2b7ae38020d3b845d7713cb10cda7facef (diff) | |
| download | puppet-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-x | test/executables/puppetbin.rb | 17 | ||||
| -rwxr-xr-x | test/lib/puppettest.rb | 1 |
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 |
