Suboptimal command line in Rakefile to run tests #11

Closed
vvs opened this Issue Feb 16, 2010 · 2 comments

2 participants

@vvs

See http://jira.codehaus.org/browse/JRUBY-4557

I'd suggest to replace system command in Rakefile by the following:

require 'rbconfig'
RUBY = File.join([Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']]) << Config::CONFIG['EXEEXT']

exit system(%Q{#{RUBY} -v -rubygems -I.:lib -e"%w( #{tests.join(' ')} ).each {|file| require file }"})

That would properly launch the correct ruby interpreter, and would work with MRI and JRUBY.

@mynyml
Owner

Thanks for the tip, will patch.

@mynyml
Owner

Fix rake test task for jruby/mswin. Closed by 77bd4cc

Solution by @vvs

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment