Use XRUBY to expand path instead of platform dependent

This commit is contained in:
Kazuhiro NISHIYAMA 2021-03-25 18:06:06 +09:00
parent e7dc6f2a3c
commit f45bed0a6e
No known key found for this signature in database
GPG Key ID: 262ED8DBB4222F7A

View File

@ -1385,14 +1385,16 @@ no-test-bundler:
PARALLELRSPECOPTS = --runtime-log $(srcdir)/tmp/parallel_runtime_rspec.log
test-bundler-parallel: $(TEST_RUNNABLE)-test-bundler-parallel
yes-test-bundler-parallel: yes-test-bundler-prepare
d=`cd "$(srcdir)" && pwd` && \
$(XRUBY) -I$(srcdir)/spec/bundler \
$(XRUBY) \
-e "ARGV[-1] = File.expand_path(ARGV[-1])" \
-e "exec(*ARGV)" -- \
$(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) "$$d"/spec/bundler/$(BUNDLER_SPECS)
$(PARALLELRSPECOPTS) $(srcdir)/spec/bundler/$(BUNDLER_SPECS)
no-test-bundler-parallel:
GEM = up