debian-mirror-gitlab/tooling/bin/js_to_system_specs_mappings
2023-04-23 21:23:45 +05:30

14 lines
447 B
Ruby
Executable file

#!/usr/bin/env ruby
# frozen_string_literal: true
require_relative '../lib/tooling/mappings/js_to_system_specs_mappings'
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(matching_tests, (matching_test_files + system_tests).join(' '))