* test/runner.rb: glob for directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
13ac4447f6
commit
24639abab7
@ -1,3 +1,7 @@
|
||||
Tue Sep 30 09:31:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/runner.rb: glob for directories.
|
||||
|
||||
Tue Sep 30 09:11:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_eval): while/until should not capture break unless
|
||||
|
@ -46,8 +46,15 @@ rescue OptionParser::ParseError
|
||||
end
|
||||
|
||||
if argv.empty?
|
||||
argv = Dir.glob(File.join(File.dirname(__FILE__), "**", "test_*.rb")).sort
|
||||
argv = [File.dirname(__FILE__)]
|
||||
end
|
||||
argv.collect! do |arg|
|
||||
if File.directory?(arg)
|
||||
Dir.glob(File.join(arg, "**", "test_*.rb")).sort
|
||||
else
|
||||
arg
|
||||
end
|
||||
end.flatten!
|
||||
|
||||
argv.each do |tc_name|
|
||||
require tc_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user