Skip to content

Commit 4ff1434

Browse files
committed
Pass the ruby to test explicitly for ruby_run_specs()
1 parent bd83be5 commit 4ff1434

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mx.truffleruby/mx_truffleruby.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ def ruby_run_ruby(args):
124124
jt = join(root, 'tool/jt.rb')
125125
os.execlp(jt, jt, "ruby", *args)
126126

127-
def ruby_run_specs(args):
127+
def ruby_run_specs(ruby, args):
128128
with VerboseMx():
129-
jt('test', 'specs', *args)
129+
jt('--use', ruby, 'test', 'specs', *args)
130130

131131
def ruby_testdownstream_hello(args):
132132
"""Run a minimal Hello World test"""
@@ -141,11 +141,10 @@ def ruby_testdownstream_aot(args):
141141
aot_bin = args[0]
142142
fast = ['--excl-tag', 'slow']
143143

144-
os.environ['RUBY_BIN'] = aot_bin
145-
ruby_run_specs([])
144+
ruby_run_specs(aot_bin, [])
146145

147146
# Run "jt test fast --native :truffle" to catch slow specs in Truffle which only apply to native
148-
ruby_run_specs(fast + [':truffle'])
147+
ruby_run_specs(aot_bin, fast + [':truffle'])
149148

150149
def ruby_testdownstream_sulong(args):
151150
"""Run C extension tests"""

0 commit comments

Comments
 (0)