Log gitaly output during testing
This commit is contained in:
parent
43f037c903
commit
60106c1e1e
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,8 @@ module TestEnv
|
||||||
def start_gitaly(gitaly_dir)
|
def start_gitaly(gitaly_dir)
|
||||||
gitaly_exec = File.join(gitaly_dir, 'gitaly')
|
gitaly_exec = File.join(gitaly_dir, 'gitaly')
|
||||||
gitaly_config = File.join(gitaly_dir, 'config.toml')
|
gitaly_config = File.join(gitaly_dir, 'config.toml')
|
||||||
@gitaly_pid = spawn(gitaly_exec, gitaly_config, [:out, :err] => '/dev/null')
|
log_file = Rails.root.join('log/gitaly-test.log').to_s
|
||||||
|
@gitaly_pid = spawn(gitaly_exec, gitaly_config, [:out, :err] => log_file)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_gitaly
|
def stop_gitaly
|
||||||
|
|
Loading…
Reference in a new issue