mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
tool/test/runner.rb: support --test-target-dir option
tool/test/runner.rb had been copied from test/runner.rb. test/runner.rb was for `make test-all`, and tool/test/runner.rb was for `make test-testframework` and `make test-tool`. But I want to avoid the code clones. This change makes tool/test/runner.rb support --test-target-dir option which allows tool/test/runner.rb to run `make test-all`. Now we can remove test/runner.rb.
This commit is contained in:
parent
523fec8a4b
commit
24712eeec3
4 changed files with 20 additions and 49 deletions
|
@ -856,9 +856,6 @@ module Test
|
|||
def setup_options(parser, options)
|
||||
super
|
||||
parser.separator "globbing options:"
|
||||
parser.on '-b', '--basedir=DIR', 'Base directory of test suites.' do |dir|
|
||||
options[:base_directory] = dir
|
||||
end
|
||||
parser.on '-x', '--exclude REGEXP', 'Exclude test files on pattern.' do |pattern|
|
||||
(options[:reject] ||= []) << pattern
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue