[Groonga-commit] droonga/drntest at a021487 [master] Return error code on test failure

Back to archive index

Yoji Shidara null+****@clear*****
Thu Nov 28 18:30:46 JST 2013


Yoji Shidara	2013-11-28 18:30:46 +0900 (Thu, 28 Nov 2013)

  New Revision: a021487a1458a75363a4c13ef3f30a8aad588834
  https://github.com/droonga/drntest/commit/a021487a1458a75363a4c13ef3f30a8aad588834

  Message:
    Return error code on test failure

  Modified files:
    lib/drntest/test-suites-result.rb
    lib/drntest/tester.rb

  Modified: lib/drntest/test-suites-result.rb (+4 -0)
===================================================================
--- lib/drntest/test-suites-result.rb    2013-11-28 18:18:43 +0900 (9bf0572)
+++ lib/drntest/test-suites-result.rb    2013-11-28 18:30:46 +0900 (ddb0e6d)
@@ -28,5 +28,9 @@ module Drntest
       end
       status_counts
     end
+
+    def success?
+      summary[:failure].zero?
+    end
   end
 end

  Modified: lib/drntest/tester.rb (+1 -1)
===================================================================
--- lib/drntest/tester.rb    2013-11-28 18:18:43 +0900 (f31c715)
+++ lib/drntest/tester.rb    2013-11-28 18:30:46 +0900 (8145438)
@@ -127,7 +127,7 @@ module Drntest
       puts "==== Summary ===="
       p test_suites_result.summary
 
-      0 # FIXME
+      test_suites_result.success?
     end
 
     def load_tests(*targets)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index