[Groonga-commit] groonga/groonga at da74ab1 [master] test: put temporary directory into build directory

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Tue Apr 10 13:17:06 JST 2018


Kouhei Sutou	2018-04-10 13:17:06 +0900 (Tue, 10 Apr 2018)

  New Revision: da74ab1c1b3b04011a503a82f8bfe05a5fb65aab
  https://github.com/groonga/groonga/commit/da74ab1c1b3b04011a503a82f8bfe05a5fb65aab

  Message:
    test: put temporary directory into build directory

  Modified files:
    test/mruby/helper/sandbox.rb

  Modified: test/mruby/helper/sandbox.rb (+2 -1)
===================================================================
--- test/mruby/helper/sandbox.rb    2018-04-10 12:47:12 +0900 (7c54bf6bd)
+++ test/mruby/helper/sandbox.rb    2018-04-10 13:17:06 +0900 (a802e76e5)
@@ -12,7 +12,8 @@ module Sandbox
   end
 
   def setup_tmp_directory
-    @base_tmp_dir = Pathname(File.dirname(__FILE__)) + "tmp"
+    base_dir = ENV["BASE_DIR"] || __dir__
+    @base_tmp_dir = Pathname(base_dir) + "tmp"
     memory_file_system = "/run/shm"
     if File.exist?(memory_file_system)
       FileUtils.mkdir_p(@base_tmp_dir.parent.to_s)
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180410/400d3bf7/attachment.htm 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index