diff options
author | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-23 14:08:25 +0000 |
---|---|---|
committer | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-23 14:08:25 +0000 |
commit | 48fa6ed529d531419b54c56993730b0e2ded928c (patch) | |
tree | aa3b600d0d3032b58baa3d95f9c58b29bdf227ab /lib/test/unit.rb | |
parent | 92729ad4736ad34bdcf6eb98211010fa6a68dd2d (diff) | |
download | ruby-48fa6ed529d531419b54c56993730b0e2ded928c.tar.gz |
* test/testunit/test_parallel.rb, test/testunit/parallel/*:
Test for r30939.
* lib/test/unit.rb: For test.
* lib/test/parallel.rb: For test.
* lib/test/unit/testcase.rb: For test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r-- | lib/test/unit.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 1272153c7b..6c4cecc442 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -87,7 +87,12 @@ module Test end opts.on '-j N', '--jobs N', "Allow run tests with N jobs at once" do |a| - options[:parallel] = a.to_i + if /^t/ =~ a + options[:testing] = true # For testing + options[:parallel] = a[1..-1].to_i + else + options[:parallel] = a.to_i + end end opts.on '--no-retry', "Don't retry running testcase when --jobs specified" do |