Skip to content

Commit c72adf2

Browse files
committed
Allow to customize the reason for tool/parse_mri_errors.rb
1 parent 4e70101 commit c72adf2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tool/parse_mri_errors.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# cd test/mri
99
# ruby ../../tool/parse_mri_errors.rb output.txt
1010

11+
REASON = ENV.fetch('REASON', 'needs investigation')
12+
1113
contents = ARGF.read
1214

1315
load_error_output = "0 tests, 0 assertions, 0 failures, 0 errors, 0 skips"
@@ -52,7 +54,7 @@
5254
unless result == "."
5355
FileUtils.mkdir_p(File.dirname(file))
5456
File.open(file, 'a') do |f|
55-
f.puts "exclude #{test_method.strip.to_sym.inspect}, \"needs investigation\""
57+
f.puts "exclude #{test_method.strip.to_sym.inspect}, #{REASON.inspect}"
5658
end
5759
end
5860
end

0 commit comments

Comments
 (0)