diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-21 21:08:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-21 21:08:54 +0000 |
commit | 36e363d33d5f75aeb75c552d4b325ed8c2d6105f (patch) | |
tree | 1ca97e2e47c613eed6b6cd4682c36c92067cab46 /scripts/flaky_examples/detect-new-flaky-examples | |
parent | d91f5211693e913da5df110b8de841fad87e3653 (diff) | |
download | gitlab-ce-36e363d33d5f75aeb75c552d4b325ed8c2d6105f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/flaky_examples/detect-new-flaky-examples')
-rwxr-xr-x | scripts/flaky_examples/detect-new-flaky-examples | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/flaky_examples/detect-new-flaky-examples b/scripts/flaky_examples/detect-new-flaky-examples new file mode 100755 index 00000000000..3bee4f9a34b --- /dev/null +++ b/scripts/flaky_examples/detect-new-flaky-examples @@ -0,0 +1,21 @@ +#!/usr/bin/env ruby + +require 'json' + +report_file = ARGV.shift +unless report_file + puts 'usage: detect-new-flaky-examples <report-file>' + exit 1 +end + +puts "Loading #{report_file}..." +report = JSON.parse(File.read(report_file)) + +if report.any? + puts "New flaky examples were detected!\n" + puts JSON.pretty_generate(report) + exit 1 +else + puts "No new flaky examples detected.\n" + exit 0 +end |