diff options
Diffstat (limited to 'qa/qa/service/praefect_manager.rb')
-rw-r--r-- | qa/qa/service/praefect_manager.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/service/praefect_manager.rb b/qa/qa/service/praefect_manager.rb index 1f1761100c8..fb2019394b4 100644 --- a/qa/qa/service/praefect_manager.rb +++ b/qa/qa/service/praefect_manager.rb @@ -376,7 +376,11 @@ module QA wait_until_shell_command("docker exec #{@gitlab} bash -c 'tail -n 50 /var/log/gitlab/gitaly/current'") do |line| log = JSON.parse(line) - break log['grpc.request.repoPath'] if log['grpc.method'] == 'RenameRepository' && log['grpc.request.repoStorage'] == storage && !log['grpc.request.repoPath'].include?('wiki') + if (log['grpc.method'] == 'RenameRepository' || log['grpc.method'] == 'RemoveRepository') && + log['grpc.request.repoStorage'] == storage && + !log['grpc.request.repoPath'].include?('wiki') + break log['grpc.request.repoPath'] + end rescue JSON::ParserError # Ignore lines that can't be parsed as JSON end |