[Groonga-commit] groonga/grntest [master] Add a color for omitted status

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Wed Nov 21 12:34:28 JST 2012


Kouhei Sutou	2012-11-21 12:34:28 +0900 (Wed, 21 Nov 2012)

  New Revision: 1e71e3af510323a80f7881d937adef555c5978c7
  https://github.com/groonga/grntest/commit/1e71e3af510323a80f7881d937adef555c5978c7

  Log:
    Add a color for omitted status

  Modified files:
    lib/grntest/tester.rb

  Modified: lib/grntest/tester.rb (+15 -0)
===================================================================
--- lib/grntest/tester.rb    2012-11-21 12:31:01 +0900 (03454f8)
+++ lib/grntest/tester.rb    2012-11-21 12:34:28 +0900 (b02390b)
@@ -1976,6 +1976,8 @@ EOF
           "%s%s%s" % [failure_color, message, reset_color]
         when :leaked
           "%s%s%s" % [leaked_color, message, reset_color]
+        when :omitted
+          "%s%s%s" % [omitted_color, message, reset_color]
         when :not_checked
           "%s%s%s" % [not_checked_color, message, reset_color]
         else
@@ -2022,6 +2024,19 @@ EOF
                         })
       end
 
+      def omitted_color
+        escape_sequence({
+                          :color => :blue,
+                          :color_256 => [0, 0, 1],
+                          :background => true,
+                        },
+                        {
+                          :color => :white,
+                          :color_256 => [5, 5, 5],
+                          :bold => true,
+                        })
+      end
+
       def not_checked_color
         escape_sequence({
                           :color => :cyan,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index