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

22 lines
459 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
#!/usr/bin/env ruby
2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
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
2021-06-08 01:23:25 +05:30
require_relative '../spec/support/helpers/gitaly_setup'
2018-10-15 14:42:47 +05:30
class GitalyTestSpawn
2021-06-08 01:23:25 +05:30
include GitalySetup
2018-10-15 14:42:47 +05:30
def run
2022-07-16 23:28:13 +05:30
# Run Praefect migrations
setup_praefect
2022-03-02 08:16:31 +05:30
# Optionally specify the path to the gitaly config toml as first argument.
# Used by workhorse in test.
spawn_gitaly(ARGV[0])
2018-10-15 14:42:47 +05:30
end
end
GitalyTestSpawn.new.run