[Groonga-commit] groonga/grntest [master] Use subdirectory for testing

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 23:05:19 JST


Kouhei Sutou	2012-08-06 23:05:19 +0900 (Mon, 06 Aug 2012)

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

  Log:
    Use subdirectory for testing

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+5 -5)
===================================================================
--- lib/groonga/tester.rb    2012-07-25 17:52:58 +0900 (001013a)
+++ lib/groonga/tester.rb    2012-08-06 23:05:19 +0900 (6800c9f)
@@ -320,17 +320,17 @@ module Groonga
       end
 
       def create_temporary_directory
-        path = "tmp"
-        FileUtils.rm_rf(path)
+        path = "tmp/grntest"
+        FileUtils.rm_rf(path, :secure => true)
         FileUtils.mkdir_p(path)
         begin
           yield(path)
         ensure
           if****@teste*****_database? and File.exist?(path)
-            FileUtils.rm_rf(keep_database_path)
+            FileUtils.rm_rf(keep_database_path, :secure => true)
             FileUtils.mv(path, keep_database_path)
           else
-            FileUtils.rm_rf(path)
+            FileUtils.rm_rf(path, :secure => true)
           end
         end
       end
@@ -605,7 +605,7 @@ EOF
         return unless have_extension?
         reject_path = related_file_path("reject")
         return if reject_path.nil?
-        FileUtils.rm_rf(reject_path.to_s)
+        FileUtils.rm_rf(reject_path.to_s, :secure => true)
       end
 
       def output_reject_file(actual_result)
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Zurück zum Archiv-Index