[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

Luke Kanies luke at madstop.com
Fri Jan 23 14:21:22 UTC 2009


The following commit has been merged in the master branch:
commit 5ec6b0734d5656dbfcf89320d476e0aeeec500f5
Author: Luke Kanies <luke at madstop.com>
Date:   Wed Oct 8 21:27:21 2008 -0500

    Adding warnings when example groups are skipped.
    
    Signed-off-by: Luke Kanies <luke at madstop.com>

diff --git a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
index 0b4a5ab..27cd6b3 100644
--- a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
+++ b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
@@ -15,7 +15,10 @@ module Spec
                 prepare
                 success = true
                 example_groups.each do |example_group|
-                    next unless example_group.runnable?
+                    unless example_group.runnable?
+                        warn "Skipping unsuitable example group %s: %s" % [example_group.description, example_group.messages.join(", ")]
+                        next
+                    end
                     success = success & example_group.run
                 end
                 return success
diff --git a/test/lib/puppettest/runnable_test.rb b/test/lib/puppettest/runnable_test.rb
index e3cde50..6dab1b7 100644
--- a/test/lib/puppettest/runnable_test.rb
+++ b/test/lib/puppettest/runnable_test.rb
@@ -12,6 +12,8 @@ module PuppetTest
             end
         end
 
+        attr_reader :messages
+
         # Evaluate all of our tests to see if any of them are false
         # and thus whether this test is considered not runnable.
         def runnable?

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list