Skip to content
This repository

Suboptimal command line in Rakefile to run tests #11

Closed
vvs opened this Issue · 2 comments

2 participants

Vladimir Sizikov Martin
Vladimir Sizikov

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.

Martin
Owner

Thanks for the tip, will patch.

Martin
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
Something went wrong with that request. Please try again.