diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 18:10:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 18:10:52 +0300 |
commit | 0552020767452da44de2bf5424096f2cb2ea6bf5 (patch) | |
tree | 9579d9f0ad3c730c33883130ec23420e80d1c5dc /scripts/qa | |
parent | e3748b81ca29b24197276767e245158d8f84fda3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/qa')
-rwxr-xr-x | scripts/qa/quarantine-types-check | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/qa/quarantine-types-check b/scripts/qa/quarantine-types-check index 44d329a3590..188348b949c 100755 --- a/scripts/qa/quarantine-types-check +++ b/scripts/qa/quarantine-types-check @@ -30,19 +30,19 @@ puts "\nAnalyzing quarantined test data...\n" tests = data_hash['examples'] tests.each do |test| - if test['quarantine'] - unless QUARANTINE_TYPES.include?(test['quarantine']['type']) - quarantine_type_errors.push( - <<~TYPE_ERRORS + next unless test['quarantine'] + + unless QUARANTINE_TYPES.include?(test['quarantine']['type']) + quarantine_type_errors.push( + <<~TYPE_ERRORS ==> #{test['full_description']} in file: #{test['id']} with type: "#{test['quarantine']['type']}" - TYPE_ERRORS - ) - end - - missing_issues.push(" ==> #{test['id']} - #{test['full_description']}\n") unless test['quarantine']['issue'] + TYPE_ERRORS + ) end + + missing_issues.push(" ==> #{test['id']} - #{test['full_description']}\n") unless test['quarantine']['issue'] end if quarantine_type_errors.empty? && missing_issues.empty? |