summaryrefslogtreecommitdiff
path: root/tool/rubytest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rubytest.rb')
-rwxr-xr-xtool/rubytest.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/rubytest.rb b/tool/rubytest.rb
index a19ce9271a9..a06c4007441 100755
--- a/tool/rubytest.rb
+++ b/tool/rubytest.rb
@@ -11,12 +11,13 @@ unless File.exist? ruby
print "Try `make' first, then `make test', please.\n"
exit false
end
+ARGV[0] and opt = ARGV[0][/\A--run-opt=(.*)/, 1] and ARGV.shift
$stderr.reopen($stdout)
error = ''
srcdir = File.expand_path('..', File.dirname(__FILE__))
-`#{ruby} #{srcdir}/sample/test.rb #{ARGV.join(' ')}`.each_line do |line|
+`#{ruby} #{opt} #{srcdir}/sample/test.rb #{ARGV.join(' ')}`.each_line do |line|
if line =~ /^end of test/
print "\ntest succeeded\n"
exit true