Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tool/jt.rb
Original file line number Diff line number Diff line change
@@ -66,6 +66,14 @@ def self.jruby_eclipse?
ENV["JRUBY_ECLIPSE"] == "true" && Utilities.git_branch == "master"
end

def self.find_ruby
if ENV["RUBY_BIN"]
ENV["RUBY_BIN"]
else
"ruby"
end
end

def self.find_jruby
if jruby_eclipse?
"#{JRUBY_DIR}/tool/jruby_eclipse"
@@ -222,7 +230,7 @@ def mspec(command, *args)
args.unshift "-ttool/jruby_eclipse"
end

sh env_vars, Utilities.find_jruby, 'spec/mspec/bin/mspec', command, '--config', 'spec/truffle/truffle.mspec', *args
sh env_vars, Utilities.find_ruby, 'spec/mspec/bin/mspec', command, '--config', 'spec/truffle/truffle.mspec', *args
end
end

0 comments on commit 5259d3d

Please sign in to comment.