[Groonga-commit] droonga/drntest at eafaa2f [master] Remove reject file on success

Back to archive index

Yoji Shidara null+****@clear*****
Thu Sep 19 17:24:40 JST 2013


Yoji Shidara	2013-09-19 17:24:40 +0900 (Thu, 19 Sep 2013)

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

  Message:
    Remove reject file on success

  Modified files:
    lib/drntest/test-runner.rb

  Modified: lib/drntest/test-runner.rb (+10 -0)
===================================================================
--- lib/drntest/test-runner.rb    2013-09-19 17:21:12 +0900 (5ba6b17)
+++ lib/drntest/test-runner.rb    2013-09-19 17:24:40 +0900 (716dca4)
@@ -3,6 +3,7 @@ require "droonga/client"
 require "tempfile"
 require "pp"
 require "drntest/test-result"
+require "fileutils"
 
 module Drntest
   class TestRunner
@@ -32,6 +33,7 @@ module Drntest
       case result.status
       when :success
         puts "SUCCESS"
+        remove_reject_file
       when :no_response
         puts "NO RESPONSE"
       when :failure
@@ -63,6 +65,14 @@ module Drntest
       target_path.sub_ext(".expected")
     end
 
+    def reject_path
+      target_path.sub_ext(".reject")
+    end
+
+    def remove_reject_file
+      FileUtils.rm_rf(reject_path, :secure => true)
+    end
+
     def output_reject_file(actual_result)
       output_actual_result(actual_result, ".reject")
     end
-------------- next part --------------
HTML����������������������������...
Download 



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