Commit 94ad542a authored by DJ Mountney's avatar DJ Mountney

Ensure migrations are complete before we run the spec tests

This should help prevent our restore from interfering with migrations
parent c439215c
Pipeline #55296713 passed with stages
in 56 minutes and 41 seconds
......@@ -2,6 +2,9 @@ require 'spec_helper'
describe "Restoring a backup" do
before(:all) do
stdout, status = wait_for_dependencies
fail stdout unless status.success?
stdout, status = restore_from_backup
......@@ -112,6 +112,13 @@ module Gitlab
return [stdout, status]
def wait_for_dependencies
cmd = full_command("/scripts/wait-for-deps")
stdout, status = Open3.capture2e(cmd)
return [stdout, status]
def pod_name
filters = 'app=task-runner'
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