[Groonga-commit] groonga/grntest at d80d79b [master] Suppress omit logs by default

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Mar 15 15:46:19 JST 2016


Kouhei Sutou	2016-03-15 15:46:19 +0900 (Tue, 15 Mar 2016)

  New Revision: d80d79bc9b20e964374ce3b14257fa1f91653e1f
  https://github.com/groonga/grntest/commit/d80d79bc9b20e964374ce3b14257fa1f91653e1f

  Message:
    Suppress omit logs by default

  Modified files:
    lib/grntest/tester.rb
    lib/grntest/worker.rb

  Modified: lib/grntest/tester.rb (+13 -3)
===================================================================
--- lib/grntest/tester.rb    2016-03-15 12:30:39 +0900 (eecc8ee)
+++ lib/grntest/tester.rb    2016-03-15 15:46:19 +0900 (bfe3108)
@@ -1,6 +1,4 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2012-2015  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2012-2016  Kouhei Sutou <kou �� clear-code.com>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -188,6 +186,12 @@ module Grntest
           tester.stop_on_failure = boolean
         end
 
+        parser.on("--no-suppress-omit-log",
+                  "Suppress omit logs",
+                  "(#{tester.suppress_omit_log?})") do |boolean|
+          tester.suppress_omit_log = boolean
+        end
+
         parser.on("--output=OUTPUT",
                   "Output to OUTPUT",
                   "(stdout)") do |output|
@@ -228,6 +232,7 @@ module Grntest
     attr_writer :valgrind_gen_suppressions
     attr_writer :reporter, :keep_database, :use_color
     attr_writer :stop_on_failure
+    attr_writer :suppress_omit_log
     attr_reader :test_patterns, :test_suite_patterns
     attr_reader :exclude_test_patterns, :exclude_test_suite_patterns
     def initialize
@@ -245,6 +250,7 @@ module Grntest
       @keep_database = false
       @use_color = nil
       @stop_on_failure = false
+      @suppress_omit_log = true
       @test_patterns = []
       @test_suite_patterns = []
       @exclude_test_patterns = []
@@ -289,6 +295,10 @@ module Grntest
       @stop_on_failure
     end
 
+    def suppress_omit_log?
+      @suppress_omit_log
+    end
+
     def valgrind_gen_suppressions?
       @valgrind_gen_suppressions
     end

  Modified: lib/grntest/worker.rb (+4 -4)
===================================================================
--- lib/grntest/worker.rb    2016-03-15 12:30:39 +0900 (83ecc46)
+++ lib/grntest/worker.rb    2016-03-15 15:46:19 +0900 (182a451)
@@ -1,6 +1,4 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2012-2013  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2012-2016  Kouhei Sutou <kou �� clear-code.com>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -148,7 +146,9 @@ module Grntest
     def on_test_omission(result)
       @status = "omitted"
       @result.on_test_omission
-      @reporter.on_test_omission(self, result)
+      unles****@teste*****_omit_log?
+        @reporter.on_test_omission(self, result)
+      end
     end
 
     def on_test_no_check(result)
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る