[前][次][番号順一覧][スレッド一覧]

ruby-changes:61956

From: Benoit <ko1@a...>
Date: Sat, 27 Jun 2020 22:52:49 +0900 (JST)
Subject: [ruby-changes:61956] 64d8c0815e (master): Update to ruby/mspec@6cb1f10

https://git.ruby-lang.org/ruby.git/commit/?id=64d8c0815e

From 64d8c0815e6ab042e8a67a670bda9f34404fa662 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Sat, 27 Jun 2020 15:51:35 +0200
Subject: Update to ruby/mspec@6cb1f10


diff --git a/spec/mspec/README.md b/spec/mspec/README.md
index 86ee369..d4054bc 100644
--- a/spec/mspec/README.md
+++ b/spec/mspec/README.md
@@ -1,5 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/spec/mspec/README.md#L1
-[![Build Status](https://travis-ci.org/ruby/mspec.svg?branch=master)](https://travis-ci.org/ruby/mspec)
-
 ## Overview
 
 MSpec is a specialized framework that is syntax-compatible with RSpec 2 for
diff --git a/spec/mspec/lib/mspec/utils/options.rb b/spec/mspec/lib/mspec/utils/options.rb
index cb466f6..bef1dbd 100644
--- a/spec/mspec/lib/mspec/utils/options.rb
+++ b/spec/mspec/lib/mspec/utils/options.rb
@@ -399,7 +399,7 @@ class MSpecOptions https://github.com/ruby/ruby/blob/trunk/spec/mspec/lib/mspec/utils/options.rb#L399
       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
diff --git a/spec/mspec/tool/sync/sync-rubyspec.rb b/spec/mspec/tool/sync/sync-rubyspec.rb
index 8a66217..163dde6 100644
--- a/spec/mspec/tool/sync/sync-rubyspec.rb
+++ b/spec/mspec/tool/sync/sync-rubyspec.rb
@@ -35,6 +35,9 @@ BRIGHT_RED = "\e[31;1m" https://github.com/ruby/ruby/blob/trunk/spec/mspec/tool/sync/sync-rubyspec.rb#L35
 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
 
diff --git a/spec/mspec/tool/tag_from_output.rb b/spec/mspec/tool/tag_from_output.rb
index 43fc480..fba52ec 100755
--- a/spec/mspec/tool/tag_from_output.rb
+++ b/spec/mspec/tool/tag_from_output.rb
@@ -26,10 +26,11 @@ output.slice_before(NUMBER).select { |number, error_line, *rest| https://github.com/ruby/ruby/blob/trunk/spec/mspec/tool/tag_from_output.rb#L26
     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| https://github.com/ruby/ruby/blob/trunk/spec/mspec/tool/tag_from_output.rb#L38
   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
 }
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]