diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-03 00:07:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-03 00:07:46 +0300 |
commit | 9579eee8954e0405c2dadb19c2a73c9597ce37ea (patch) | |
tree | d90223b7e449d8d25eef60ad16084ce0d2ca2b1b /tooling | |
parent | 0a9b6b99a9bdcacea434501320f1a8d131a33827 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rwxr-xr-x | tooling/bin/js_to_system_specs_mappings | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tooling/bin/js_to_system_specs_mappings b/tooling/bin/js_to_system_specs_mappings index 59a66ab0691..3e9d9cb4c5f 100755 --- a/tooling/bin/js_to_system_specs_mappings +++ b/tooling/bin/js_to_system_specs_mappings @@ -3,8 +3,12 @@ require_relative '../lib/tooling/mappings/js_to_system_specs_mappings' -changes = ARGV.shift -output_file = ARGV.shift +changes = ARGV.shift +matching_tests = ARGV.shift + changed_files = File.read(changes).split(' ') +matching_test_files = File.read(matching_tests).split(' ') + +system_tests = Tooling::Mappings::JsToSystemSpecsMappings.new.execute(changed_files) -File.write(output_file, Tooling::Mappings::JsToSystemSpecsMappings.new.execute(changed_files).join(' ')) +File.write(matching_tests, (matching_test_files + system_tests).join(' ')) |