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

24 lines
522 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')
pid = start_gitaly
# In local development this pid file is used by rspec.
IO.write(File.expand_path('../tmp/tests/gitaly.pid', __dir__), pid)
end
end
GitalyTestSpawn.new.run