1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixup test-bundler-parallel

* Do not chdir in the runner process, to access miniruby.  Chdir
  in worker processes instead.
* GNU make does not export newly added environment variables by
  default, set PARALLEL_TESTS_EXECUTABLE in the runner.
This commit is contained in:
Nobuyoshi Nakada 2020-06-05 21:34:26 +09:00
parent 0afbfddc0d
commit e11ffe0aaf
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2020-06-05 23:07:32 +09:00

View file

@ -1351,11 +1351,14 @@ no-test-bundler:
PARALLELRSPECOPTS = --runtime-log $(srcdir)/tmp/parallel_runtime_rspec.log
test-bundler-parallel: $(TEST_RUNNABLE)-test-bundler-parallel
PARALLEL_TESTS_EXECUTABLE = $(XRUBY)
yes-test-bundler-parallel: yes-test-bundler-prepare
$(XRUBY) -C $(srcdir) -Ispec/bundler .bundle/bin/parallel_rspec \
-o "--require $(srcdir)/spec/bundler/spec_helper" \
$(PARALLELRSPECOPTS) spec/bundler/$(BUNDLER_SPECS)
$(XRUBY) -I$(srcdir)/spec/bundler \
-e "ENV['PARALLEL_TESTS_EXECUTABLE'] = ARGV.shift" \
-e "load ARGV.shift" \
"$(XRUBY) -C $(srcdir) -Ispec/bundler .bundle/bin/rspec" \
$(srcdir)/.bundle/bin/parallel_rspec \
-o "--require spec_helper" \
$(PARALLELRSPECOPTS) $(srcdir)/spec/bundler/$(BUNDLER_SPECS)
no-test-bundler-parallel:
GEM = up