1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-12-01 14:11:40 +01:00
parent ab516e263c
commit 60d362b0bb
2 changed files with 5 additions and 6 deletions

View file

@ -162,12 +162,7 @@ end
def test_new_specs
require "yaml"
Dir.chdir(SOURCE_REPO) do
versions = YAML.load_file(".travis.yml")
versions = if versions.include? "matrix"
versions["matrix"]["include"].map { |job| job["rvm"] }
else
versions["rvm"]
end
versions = YAML.load_file("#{MSPEC_REPO}/.travis.yml").fetch("rvm")
versions = versions.grep(/^\d+\./) # Test on MRI
min_version, max_version = versions.minmax

View file

@ -21,6 +21,10 @@ output.slice_before(NUMBER).select { |number, error_line, *rest|
description = error_line.match(ERROR_OR_FAILED).pre_match
spec_file = rest.find { |line| line =~ SPEC_FILE }
unless spec_file
warn "Could not find file for:\n#{error_line}"
next
end
spec_file = spec_file[SPEC_FILE, 1]
prefix = spec_file.index('spec/ruby')
spec_file = spec_file[prefix..-1]