Skip to content
代码片段 群组 项目
提交 a14bd24a 编辑于 作者: Jacob Vosmaer's avatar Jacob Vosmaer 提交者: Rémy Coutable
浏览文件

Set an artificial $HOME for gitaly in test

上级 feece771
No related branches found
No related tags found
无相关合并请求
#!/usr/bin/env ruby #!/usr/bin/env ruby
gitaly_dir = 'tmp/tests/gitaly' gitaly_dir = 'tmp/tests/gitaly'
env = { 'HOME' => File.expand_path('tmp/tests') }
args = %W[#{gitaly_dir}/gitaly #{gitaly_dir}/config.toml] args = %W[#{gitaly_dir}/gitaly #{gitaly_dir}/config.toml]
# Print the PID of the spawned process # Print the PID of the spawned process
puts spawn(*args, [:out, :err] => 'log/gitaly-test.log') puts spawn(env, *args, [:out, :err] => 'log/gitaly-test.log')
...@@ -207,3 +207,6 @@ ...@@ -207,3 +207,6 @@
with.library :rails with.library :rails
end end
end end
# Prevent Rugged from picking up local developer gitconfig.
Rugged::Settings['search_path_global'] = Rails.root.join('tmp/tests').to_s
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册