Update to ruby/mspec@6cb1f10
This commit is contained in:
parent
609ac6ee2c
commit
64d8c0815e
@ -1,5 +1,3 @@
|
||||
[](https://travis-ci.org/ruby/mspec)
|
||||
|
||||
## Overview
|
||||
|
||||
MSpec is a specialized framework that is syntax-compatible with RSpec 2 for
|
||||
|
@ -399,7 +399,7 @@ class MSpecOptions
|
||||
end
|
||||
def obj.load
|
||||
file = MSpec.file
|
||||
STDERR.print "\n#{file.ljust(@width)}"
|
||||
STDERR.print "\n#{file.ljust(@width)}\n"
|
||||
end
|
||||
MSpec.register :start, obj
|
||||
MSpec.register :load, obj
|
||||
|
@ -35,6 +35,9 @@ BRIGHT_RED = "\e[31;1m"
|
||||
BRIGHT_YELLOW = "\e[33;1m"
|
||||
RESET = "\e[0m"
|
||||
|
||||
# git filter-branch --subdirectory-filter works fine for our use case
|
||||
ENV['FILTER_BRANCH_SQUELCH_WARNING'] = '1'
|
||||
|
||||
class RubyImplementation
|
||||
attr_reader :name
|
||||
|
||||
|
@ -26,10 +26,11 @@ output.slice_before(NUMBER).select { |number, error_line, *rest|
|
||||
next
|
||||
end
|
||||
spec_file = spec_file[SPEC_FILE, 1]
|
||||
prefix = spec_file.index('spec/ruby')
|
||||
prefix = spec_file.index('spec/ruby/') || spec_file.index('spec/truffle/')
|
||||
spec_file = spec_file[prefix..-1]
|
||||
|
||||
tags_file = spec_file.sub('spec/ruby/', "#{tags_dir}/").sub(/_spec\.rb$/, '_tags.txt')
|
||||
tags_file = spec_file.sub('spec/ruby/', "#{tags_dir}/").sub('spec/truffle/', "#{tags_dir}/truffle/")
|
||||
tags_file = tags_file.sub(/_spec\.rb$/, '_tags.txt')
|
||||
|
||||
dir = File.dirname(tags_file)
|
||||
Dir.mkdir(dir) unless Dir.exist?(dir)
|
||||
@ -37,6 +38,7 @@ output.slice_before(NUMBER).select { |number, error_line, *rest|
|
||||
tag_line = "fails:#{description}"
|
||||
lines = File.exist?(tags_file) ? File.readlines(tags_file, chomp: true) : []
|
||||
unless lines.include?(tag_line)
|
||||
puts tags_file
|
||||
File.write(tags_file, (lines + [tag_line]).join("\n") + "\n")
|
||||
end
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user