From a14bd24a023220507f8f77e7a0962ca259fb9605 Mon Sep 17 00:00:00 2001 From: "Jacob Vosmaer (GitLab)" Date: Thu, 30 Nov 2017 12:58:51 +0000 Subject: Set an artificial $HOME for gitaly in test --- scripts/gitaly-test-spawn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/gitaly-test-spawn') diff --git a/scripts/gitaly-test-spawn b/scripts/gitaly-test-spawn index dd603eec7f6..8e05eca8d7e 100755 --- a/scripts/gitaly-test-spawn +++ b/scripts/gitaly-test-spawn @@ -1,7 +1,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(*args, [:out, :err] => 'log/gitaly-test.log') +puts spawn(env, *args, [:out, :err] => 'log/gitaly-test.log') -- cgit v1.2.3