gitaly-test-spawn 263 Bytes
Newer Older
Jacob Vosmaer's avatar
Jacob Vosmaer committed
1 2 3
#!/usr/bin/env ruby

gitaly_dir = 'tmp/tests/gitaly'
4
env = { 'HOME' => File.expand_path('tmp/tests') }
Jacob Vosmaer's avatar
Jacob Vosmaer committed
5 6 7
args = %W[#{gitaly_dir}/gitaly #{gitaly_dir}/config.toml]

# Print the PID of the spawned process
8
puts spawn(env, *args, [:out, :err] => 'log/gitaly-test.log')