2017-09-10 17:25:29 +05:30
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
gitaly_dir = 'tmp/tests/gitaly'
|
2018-03-17 18:26:18 +05:30
|
|
|
env = { 'HOME' => File.expand_path('tmp/tests'),
|
|
|
|
'GEM_PATH' => Gem.path.join(':') }
|
2017-09-10 17:25:29 +05:30
|
|
|
args = %W[#{gitaly_dir}/gitaly #{gitaly_dir}/config.toml]
|
|
|
|
|
|
|
|
# Print the PID of the spawned process
|
2018-03-17 18:26:18 +05:30
|
|
|
puts spawn(env, *args, [:out, :err] => 'log/gitaly-test.log')
|