null+****@clear*****
null+****@clear*****
2012年 8月 6日 (月) 22:55:30 JST
Kouhei Sutou 2012-08-06 22:55:30 +0900 (Mon, 06 Aug 2012) New Revision: 257f2f32ae20d25269ea8e7ff984f4f421fe9520 https://github.com/groonga/groonga/commit/257f2f32ae20d25269ea8e7ff984f4f421fe9520 Log: test: use subdirectory for temporary use to use tmpfs Modified files: test/unit/lib/ruby/groonga-test-utils.rb Modified: test/unit/lib/ruby/groonga-test-utils.rb (+3 -3) =================================================================== --- test/unit/lib/ruby/groonga-test-utils.rb 2012-08-06 22:51:25 +0900 (7811186) +++ test/unit/lib/ruby/groonga-test-utils.rb 2012-08-06 22:55:30 +0900 (e8ede69) @@ -26,8 +26,8 @@ module GroongaTestUtils def setup_database_path base_dir = ENV["BUILD_DIR"] || ENV["BASE_DIR"] base_dir ||= File.join(File.dirname(__FILE__), "..", "..") - @tmp_base_dir = File.join(File.expand_path(base_dir), "tmp") - FileUtils.rm_rf(@tmp_base_dir) + @tmp_base_dir = File.join(File.expand_path(base_dir), "tmp", "ruby") + FileUtils.rm_rf(@tmp_base_dir, :secure => true) FileUtils.mkdir_p(@tmp_base_dir) @tmp_dir = Dir.mktmpdir("tmp", @tmp_base_dir) @database_path = File.join(@tmp_dir, "database") @@ -35,7 +35,7 @@ module GroongaTestUtils def teardown_database_path @tmp_base_dir ||= nil - FileUtils.rm_rf(@tmp_base_dir) if @tmp_base_dir + FileUtils.rm_rf(@tmp_base_dir, :secure => true) if @tmp_base_dir end def setup_server(protocol=nil) -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download