Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2017-11-30 15:58:51 +0300
committerRémy Coutable <remy@rymai.me>2017-11-30 15:58:51 +0300
commita14bd24a023220507f8f77e7a0962ca259fb9605 (patch)
tree4d77ee8b718316b4f8278d29b1ac3d7edbf2a8f9 /scripts
parentfeece7713247a063bfa71ab701f8a164e6fa71bb (diff)
Set an artificial $HOME for gitaly in test
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gitaly-test-spawn3
1 files changed, 2 insertions, 1 deletions
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')