summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-03-25 14:58:19 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-03-25 14:59:15 +0900
commit12812c2bdf146805fedec79d299c2fa120a117fc (patch)
tree5ddac96d565c9439e3d731b67eaa696d9887108c /common.mk
parentb25361f7319cac953145d9d15e2e673e560ec3d9 (diff)
downloadruby-12812c2bdf146805fedec79d299c2fa120a117fc.tar.gz
Fix test-bundler-parallel errors when out-of-place build
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 102a58a230..0e632a587d 100644
--- a/common.mk
+++ b/common.mk
@@ -1384,13 +1384,14 @@ 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 \
-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)
+ $(PARALLELRSPECOPTS) "$$d"/spec/bundler/$(BUNDLER_SPECS)
no-test-bundler-parallel:
GEM = up