summaryrefslogtreecommitdiff
path: root/scripts/gitaly-test-spawn
blob: 8e05eca8d7e640786f50b1d5b0e8f3c05f1ffa51 (plain)
1
2
3
4
5
6
7
8
#!/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(env, *args, [:out, :err] => 'log/gitaly-test.log')