From b595cb0c1dec83de5bdee18284abe86614bed33b Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 20 Jul 2022 15:40:28 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-2-stable-ee --- tooling/bin/qa/check_if_qa_only_spec_changes | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 tooling/bin/qa/check_if_qa_only_spec_changes (limited to 'tooling/bin') diff --git a/tooling/bin/qa/check_if_qa_only_spec_changes b/tooling/bin/qa/check_if_qa_only_spec_changes deleted file mode 100755 index 5b9166b41fe..00000000000 --- a/tooling/bin/qa/check_if_qa_only_spec_changes +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# This script assumes the first argument is a path to a file containing a list of changed files and the second argument -# is the path of a file where a list of end-to-end spec files with the leading 'qa/' trimmed will be written to if -# all the files are end-to-end test spec files. - -abort("ERROR: Please specify the file containing the list of changed files and a file where the qa only spec files will be written") if ARGV.size != 2 - -changed_files_path = ARGV.shift -output_file = ARGV.shift - -return unless File.exist?(changed_files_path) - -changed_files = File.read(changed_files_path).split(' ') - -all_files_are_qa_specs = changed_files.all? { |file_path| file_path =~ %r{^qa\/qa\/specs\/features\/} } - -if all_files_are_qa_specs - qa_spec_paths_trimmed = changed_files.map { |path| path.sub('qa/', '') } - File.write(output_file, qa_spec_paths_trimmed.join(' ')) -end -- cgit v1.2.1