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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-07 12:11:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-07 12:11:43 +0300
commit378308b6cde44eb1a320b9202ff8946a911f35f6 (patch)
tree3031a645455dbbcdb2961dd09c15100fa28ed8e1 /tooling
parent777dc3053f8433a9f5c9cc868325e16eac5d93e5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rwxr-xr-xtooling/bin/find_tests5
1 files changed, 4 insertions, 1 deletions
diff --git a/tooling/bin/find_tests b/tooling/bin/find_tests
index a82b6bb5d46..97fadf406fe 100755
--- a/tooling/bin/find_tests
+++ b/tooling/bin/find_tests
@@ -22,7 +22,10 @@ changed_files = mr_changes.changes.map { |change| change['new_path'] }
tff = TestFileFinder::FileFinder.new(paths: changed_files).tap do |file_finder|
file_finder.use TestFileFinder::MappingStrategies::PatternMatching.load('tests.yml')
- file_finder.use TestFileFinder::MappingStrategies::DirectMatching.load_json(ENV['RSPEC_TESTS_MAPPING_PATH'])
+
+ if ENV['RSPEC_TESTS_MAPPING_ENABLED']
+ file_finder.use TestFileFinder::MappingStrategies::DirectMatching.load_json(ENV['RSPEC_TESTS_MAPPING_PATH'])
+ end
end
File.write(output_file, tff.test_files.uniq.join(' '))