diff --git a/template/Makefile.in b/template/Makefile.in index 117c1cd5c4..4c817b170c 100644 --- a/template/Makefile.in +++ b/template/Makefile.in @@ -536,7 +536,7 @@ cont.$(OBJEXT): $(COROUTINE_H) TEST_BUNDLED_GEMS_ALLOW_FAILURES = test-bundled-gems-run: - $(Q) $(XRUBY) $(srcdir)/tool/test-bundled-gems.rb + $(Q) $(XRUBY) $(srcdir)/tool/test-bundled-gems.rb $(XRUBY) update-src:: @$(CHDIR) "$(srcdir)" && LC_TIME=C exec $(VCSUP) diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb index 735f7f4863..9035e20bb1 100644 --- a/tool/test-bundled-gems.rb +++ b/tool/test-bundled-gems.rb @@ -9,7 +9,7 @@ File.foreach('gems/bundled_gems') do |line| puts "\nTesting the #{gem} gem" gem_src_dir = File.expand_path("../../gems/src/#{gem}", __FILE__ ) - test_command = "#{RbConfig.ruby} -C #{gem_src_dir} -Ilib ../../../.bundle/bin/rake" + test_command = "#{ARGV.join(' ')} -C #{gem_src_dir} -Ilib ../../../.bundle/bin/rake" puts test_command system test_command