Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/qa/quarantine-types-check')
-rwxr-xr-xscripts/qa/quarantine-types-check18
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?