debian-mirror-gitlab/tooling/bin/js_to_system_specs_mappings

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
447 B
Text
Raw Normal View History

2023-04-23 21:23:45 +05:30
#!/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(' '))