mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb, lib/test/unit/parallel.rb: remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2e491c43e
commit
715dc8355c
3 changed files with 7 additions and 7 deletions
|
@ -54,7 +54,7 @@ module Test
|
||||||
@options = options
|
@options = options
|
||||||
@opts = @options = options
|
@opts = @options = options
|
||||||
if @options[:parallel]
|
if @options[:parallel]
|
||||||
@files = args
|
@files = args
|
||||||
@args = orig_args
|
@args = orig_args
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -81,7 +81,7 @@ module Test
|
||||||
opts.on '-n', '--name PATTERN', "Filter test names on pattern." do |a|
|
opts.on '-n', '--name PATTERN', "Filter test names on pattern." do |a|
|
||||||
options[:filter] = a
|
options[:filter] = a
|
||||||
end
|
end
|
||||||
|
|
||||||
opts.on '--jobs-status [TYPE]', "Show status of jobs every file; Disabled when --jobs isn't specified." do |type|
|
opts.on '--jobs-status [TYPE]', "Show status of jobs every file; Disabled when --jobs isn't specified." do |type|
|
||||||
options[:job_status] = true
|
options[:job_status] = true
|
||||||
options[:job_status_type] = type.to_sym if type
|
options[:job_status_type] = type.to_sym if type
|
||||||
|
@ -293,7 +293,7 @@ module Test
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def call_hook(id,*additional)
|
def call_hook(id,*additional)
|
||||||
@hooks[id] ||= []
|
@hooks[id] ||= []
|
||||||
@hooks[id].each{|hook| hook[self,additional] }
|
@hooks[id].each{|hook| hook[self,additional] }
|
||||||
|
|
|
@ -6,7 +6,7 @@ module Test
|
||||||
class << self
|
class << self
|
||||||
undef autorun
|
undef autorun
|
||||||
end
|
end
|
||||||
|
|
||||||
alias orig_run_suite _run_suite
|
alias orig_run_suite _run_suite
|
||||||
undef _run_suite
|
undef _run_suite
|
||||||
undef _run_suites
|
undef _run_suites
|
||||||
|
@ -91,7 +91,7 @@ module Test
|
||||||
begin
|
begin
|
||||||
stdout.puts "bye"
|
stdout.puts "bye"
|
||||||
rescue Errno::EPIPE; end
|
rescue Errno::EPIPE; end
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -51,7 +51,7 @@ module TestParallel
|
||||||
assert_match(/^ready/,@worker_out.gets)
|
assert_match(/^ready/,@worker_out.gets)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_accept_run_command_multiple_times
|
def test_accept_run_command_multiple_times
|
||||||
timeout(10) do
|
timeout(10) do
|
||||||
assert_match(/^ready/,@worker_out.gets)
|
assert_match(/^ready/,@worker_out.gets)
|
||||||
|
@ -145,7 +145,7 @@ module TestParallel
|
||||||
|
|
||||||
#def test_childs
|
#def test_childs
|
||||||
#end
|
#end
|
||||||
|
|
||||||
def test_should_run_all_without_any_leaks
|
def test_should_run_all_without_any_leaks
|
||||||
spawn_runner
|
spawn_runner
|
||||||
buf = timeout(10){@test_out.read}
|
buf = timeout(10){@test_out.read}
|
||||||
|
|
Loading…
Add table
Reference in a new issue