mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
common test options
* common.mk (btest, test-sample, test-knownbugs, test-all, test-ruby): pass common options by TESTOPTS. * tool/rubytest.rb: pass ARGV from make to sample/test.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
99c741c119
commit
a8f87d6d8d
2 changed files with 8 additions and 8 deletions
|
@ -16,7 +16,7 @@ $stderr.reopen($stdout)
|
|||
error = ''
|
||||
|
||||
srcdir = File.expand_path('..', File.dirname(__FILE__))
|
||||
`#{ruby} #{srcdir}/sample/test.rb`.each_line do |line|
|
||||
`#{ruby} #{srcdir}/sample/test.rb #{ARGV.join(' ')}`.each_line do |line|
|
||||
if line =~ /^end of test/
|
||||
print "\ntest succeeded\n"
|
||||
exit true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue