Skip to content

Commit 94bb275

Browse files
committed
Specify mspec method arguments
1 parent 0b1cdc6 commit 94bb275

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tool/jt.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,7 @@ def mx_os
415415
end
416416
end
417417

418-
def mspec(command, *args)
419-
env_vars = {}
420-
if command.is_a?(Hash)
421-
env_vars = command
422-
command, *args = args
423-
end
424-
418+
def run_mspec(env_vars, command = 'run', *args)
425419
mspec_args = ['spec/mspec/bin/mspec', command, '--config', 'spec/truffle.mspec']
426420

427421
if i = args.index('-t')
@@ -1237,7 +1231,7 @@ def test_bundle(*args)
12371231
end
12381232

12391233
def mspec(*args)
1240-
super(*args)
1234+
run_mspec({}, *args)
12411235
end
12421236

12431237
def test_specs(command, *args)
@@ -1314,7 +1308,7 @@ def test_specs(command, *args)
13141308
build("cexts")
13151309
end
13161310

1317-
mspec env_vars, command, *options, *args
1311+
run_mspec env_vars, command, *options, *args
13181312
end
13191313
private :test_specs
13201314

0 commit comments

Comments
 (0)