Skip to content
Snippets Groups Projects
Commit a14bd24a authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab) Committed by Rémy Coutable
Browse files

Set an artificial $HOME for gitaly in test

parent feece771
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env ruby
 
gitaly_dir = 'tmp/tests/gitaly'
env = { 'HOME' => File.expand_path('tmp/tests') }
args = %W[#{gitaly_dir}/gitaly #{gitaly_dir}/config.toml]
 
# 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')
Loading
Loading
@@ -207,3 +207,6 @@ Shoulda::Matchers.configure do |config|
with.library :rails
end
end
# Prevent Rugged from picking up local developer gitconfig.
Rugged::Settings['search_path_global'] = Rails.root.join('tmp/tests').to_s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment