diff options
Diffstat (limited to 'tooling/bin/js_to_system_specs_mappings')
-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(' ')) |