mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (setup_options): add option "--retry" as opposite
for "--no-retry" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c0ec3efcae
commit
1a6b0bab94
2 changed files with 14 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Feb 22 18:44:41 2012 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
|
* lib/test/unit.rb (setup_options): add option "--retry" as opposite
|
||||||
|
for "--no-retry"
|
||||||
|
|
||||||
Wed Feb 22 18:34:02 2012 Shota Fukumori <sorah@tubusu.net>
|
Wed Feb 22 18:34:02 2012 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
* lib/test/unit.rb (setup_options): add option "--show-skip" to
|
* lib/test/unit.rb (setup_options): add option "--show-skip" to
|
||||||
|
|
|
@ -64,6 +64,8 @@ module Test
|
||||||
opts.separator 'minitest options:'
|
opts.separator 'minitest options:'
|
||||||
opts.version = MiniTest::Unit::VERSION
|
opts.version = MiniTest::Unit::VERSION
|
||||||
|
|
||||||
|
options[:retry] = true
|
||||||
|
|
||||||
opts.on '-h', '--help', 'Display this help.' do
|
opts.on '-h', '--help', 'Display this help.' do
|
||||||
puts opts
|
puts opts
|
||||||
exit
|
exit
|
||||||
|
@ -101,8 +103,12 @@ module Test
|
||||||
options[:separate] = true
|
options[:separate] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
opts.on '--no-retry', "Don't retry running testcase when --jobs specified" do
|
opts.on '--retry', "Retry running testcase when --jobs specified" do
|
||||||
options[:no_retry] = true
|
options[:retry] = true
|
||||||
|
end
|
||||||
|
|
||||||
|
opts.on '--no-retry', "Disable --retry" do
|
||||||
|
options[:retry] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
opts.on '--ruby VAL', "Path to ruby; It'll have used at -j option" do |a|
|
opts.on '--ruby VAL', "Path to ruby; It'll have used at -j option" do |a|
|
||||||
|
@ -552,7 +558,7 @@ module Test
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if @interrupt || @options[:no_retry] || @need_quit
|
if @interrupt || !@options[:retry] || @need_quit
|
||||||
rep.each do |r|
|
rep.each do |r|
|
||||||
report.push(*r[:report])
|
report.push(*r[:report])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue