diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-19 13:45:46 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-19 13:45:46 +0000 |
commit | 0fe17f5d812d5d1a065e7d472df9be3376a90920 (patch) | |
tree | 2cfaba565bcb50fcf2612ee2393f0138bc366360 | |
parent | b37319295dd921fe3d679f7221fda6a151da626b (diff) | |
download | ruby-0fe17f5d812d5d1a065e7d472df9be3376a90920.tar.gz |
* lib/test/unit/collector/dir.rb: better support for -p/-x option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/test/unit/collector/dir.rb | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Fri Nov 19 22:44:43 2004 WATANABE Hirofumi <eban@ruby-lang.org> + + * lib/test/unit/collector/dir.rb: better support for -p/-x option. + Fri Nov 19 17:46:56 2004 Kouhei Sutou <kou@cozmixng.org> * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Image#have_required_values): diff --git a/lib/test/unit/collector/dir.rb b/lib/test/unit/collector/dir.rb index b7927b867f..91561f3d38 100644 --- a/lib/test/unit/collector/dir.rb +++ b/lib/test/unit/collector/dir.rb @@ -55,6 +55,7 @@ module Test sub_suite = recursive_collect(e_name, already_gathered) sub_suites << sub_suite unless(sub_suite.empty?) else + next unless %r(/test_.*\.rb\Z) =~ e_name (next unless(@pattern =~ e_name)) if(@pattern) (next if(@exclude =~ e_name)) if(@exclude) collect_file(e_name, sub_suites, already_gathered) |