mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	return options. * lib/test/unit.rb (Test::Unit::RequireFiles#non_options): return if any test case get loaded. * lib/test/unit.rb (Test::Unit::AutoRunner#initialize): do not add default directory if it is nil. * lib/test/unit.rb (Test::Unit::AutoRunner#process_args): return true if any test cases to run. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			298 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			298 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/env ruby
 | 
						|
require 'test/unit'
 | 
						|
tests = Test::Unit::AutoRunner.new(true)
 | 
						|
tests.options.banner.sub!(/\[options\]/, '\& tests...')
 | 
						|
unless tests.process_args(ARGV)
 | 
						|
  abort tests.options.banner
 | 
						|
end
 | 
						|
files = tests.to_run
 | 
						|
$0 = files.size == 1 ? File.basename(files[0]) : files.to_s
 | 
						|
exit tests.run
 |