Merge branch 'preserve-gem-path' into 'master'

Preserve gem path so that we use the same gems

See merge request gitlab-org/gitlab-ce!15986
This commit is contained in:
Rémy Coutable 2017-12-19 15:52:13 +00:00
commit dc1692801d

View file

@ -1,7 +1,8 @@
#!/usr/bin/env ruby
gitaly_dir = 'tmp/tests/gitaly'
env = { 'HOME' => File.expand_path('tmp/tests') }
env = { 'HOME' => File.expand_path('tmp/tests'),
'GEM_PATH' => Gem.path.join(':') }
args = %W[#{gitaly_dir}/gitaly #{gitaly_dir}/config.toml]
# Print the PID of the spawned process