Commit 3efaf5b5 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Hotfix for Rspec and second storage

Rails requires a second storage for testing cross shard features. Gitaly
will not boot if this second storage doesn't exist. So this will create
this storage without adding it to the list of storages that Rails knows
about.
parent 5522f0f4
...@@ -168,6 +168,8 @@ module TestEnv ...@@ -168,6 +168,8 @@ module TestEnv
return return
end end
FileUtils.mkdir_p("tmp/tests/second_storage") unless File.exist?("tmp/tests/second_storage")
spawn_script = Rails.root.join('scripts/gitaly-test-spawn').to_s spawn_script = Rails.root.join('scripts/gitaly-test-spawn').to_s
Bundler.with_original_env do Bundler.with_original_env do
raise "gitaly spawn failed" unless system(spawn_script) raise "gitaly spawn failed" unless system(spawn_script)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment