Skip to content

Commit

Permalink
[Truffle] JT: allow args in test PE.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Apr 15, 2015
1 parent 543890d commit 2d805c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tool/jt.rb
Expand Up @@ -234,7 +234,6 @@ def run(*args)
alias ruby run

def test_mri(*args)
args.shift
env_vars = {}
jruby_args = %w[-X+T]

Expand Down Expand Up @@ -287,9 +286,9 @@ def test_mri(*args)
end

def test(*args)
return test_pe if args == ['pe']
return test_pe(*args.drop(1)) if args.first == 'pe'

return test_mri(*args) if args.first == 'mri'
return test_mri(*args.drop(1)) if args.first == 'mri'

options = %w[--excl-tag fails]
if args.first == 'fast'
Expand All @@ -299,8 +298,8 @@ def test(*args)
mspec 'run', *options, *args
end

def test_pe
run(*%w[--graal test/truffle/pe/pe.rb])
def test_pe(*args)
run('--graal', *args, 'test/truffle/pe/pe.rb')
end
private :test_pe

Expand Down

0 comments on commit 2d805c2

Please sign in to comment.