mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (Test::Unit::Options#setup_options): set possible
values for completion. no conversion is needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
80020d092e
commit
716a99389c
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,7 @@
|
|||
Thu Apr 14 22:48:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Apr 14 22:48:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/test/unit.rb (Test::Unit::Options#setup_options): set possible
|
||||
values for completion. no conversion is needed.
|
||||
|
||||
* lib/test/unit.rb (Test::Unit::Runner::Worker#initialize): use
|
||||
positional arguments instead of keyword arguments.
|
||||
|
|
|
@ -70,7 +70,7 @@ module Test
|
|||
end
|
||||
|
||||
opts.on '-s', '--seed SEED', Integer, "Sets random seed" do |m|
|
||||
options[:seed] = m.to_i
|
||||
options[:seed] = m
|
||||
end
|
||||
|
||||
opts.on '-v', '--verbose', "Verbose. Show progress processing files." do
|
||||
|
@ -82,8 +82,9 @@ module Test
|
|||
options[:filter] = a
|
||||
end
|
||||
|
||||
opts.on '--jobs-status [TYPE]', "Show status of jobs every file; Disabled when --jobs isn't specified." do |type|
|
||||
options[:job_status] = (type && type.to_sym) || :normal
|
||||
opts.on '--jobs-status [TYPE]', [:normal, :replace],
|
||||
"Show status of jobs every file; Disabled when --jobs isn't specified." do |type|
|
||||
options[:job_status] = type || :normal
|
||||
end
|
||||
|
||||
opts.on '-j N', '--jobs N', "Allow run tests with N jobs at once" do |a|
|
||||
|
|
Loading…
Reference in a new issue