Skip to content

Commit

Permalink
[Truffle] JT: handle args with spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 23, 2015
1 parent 0fb5e4b commit 34c5723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/jt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module ShellUtils
private

def sh(*args)
system(args.join(' '))
system(*args)
raise "failed" unless $? == 0
end

Expand Down Expand Up @@ -63,7 +63,7 @@ def rebuild
end

def run(*args)
sh *(%w[VERIFY_JRUBY=1 bin/jruby -J-cp truffle/target/jruby-truffle-9.0.0.0-SNAPSHOT.jar -X+T] + args)
sh({ "VERIFY_JRUBY" => "1" }, *%w[bin/jruby -J-cp truffle/target/jruby-truffle-9.0.0.0-SNAPSHOT.jar -X+T], *args)
end

def test(*args)
Expand Down

0 comments on commit 34c5723

Please sign in to comment.