summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2008-12-07 11:32:51 +0100
committerJames Turnbull <james@lovedthanlost.net>2008-12-08 08:29:23 +1100
commitb22303e31654b44c300c713426d7f16ef37f4210 (patch)
tree5b270b1a00689c562e028a772a8d6d5dde6cdce8 /test/lib
parent0caa9c57c67005871c46e160de318044ffb65375 (diff)
downloadpuppet-b22303e31654b44c300c713426d7f16ef37f4210.tar.gz
puppet-b22303e31654b44c300c713426d7f16ef37f4210.tar.xz
puppet-b22303e31654b44c300c713426d7f16ef37f4210.zip
Fix rake abort when there is a matching confine
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/runnable_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/puppettest/runnable_test.rb b/test/lib/puppettest/runnable_test.rb
index 6dab1b743..977dba47a 100644
--- a/test/lib/puppettest/runnable_test.rb
+++ b/test/lib/puppettest/runnable_test.rb
@@ -17,10 +17,10 @@ module PuppetTest
# Evaluate all of our tests to see if any of them are false
# and thus whether this test is considered not runnable.
def runnable?
+ @messages ||= []
if superclass.respond_to?(:runnable?) and ! superclass.runnable?
return false
end
- @messages ||= []
return false unless @messages.empty?
return true unless defined? @confines
@confines.find_all do |message, result|