debian-mirror-gitlab/scripts/gitaly-test-spawn

24 lines
675 B
Plaintext
Raw Normal View History

2017-09-10 17:25:29 +05:30
#!/usr/bin/env ruby
2018-10-15 14:42:47 +05:30
# This script is used both in CI and in local development 'rspec' runs.
2017-09-10 17:25:29 +05:30
2018-10-15 14:42:47 +05:30
require_relative 'gitaly_test'
class GitalyTestSpawn
include GitalyTest
def run
check_gitaly_config!
# # Uncomment line below to see all gitaly logs merged into CI trace
# spawn('sleep 1; tail -f log/gitaly-test.log')
# In local development this pid file is used by rspec.
2020-04-22 19:07:51 +05:30
IO.write(File.expand_path('../tmp/tests/gitaly.pid', __dir__), start_gitaly)
2021-02-22 17:27:13 +05:30
IO.write(File.expand_path('../tmp/tests/gitaly2.pid', __dir__), start_gitaly2)
2020-04-22 19:07:51 +05:30
IO.write(File.expand_path('../tmp/tests/praefect.pid', __dir__), start_praefect)
2018-10-15 14:42:47 +05:30
end
end
GitalyTestSpawn.new.run