aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-24 11:51:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-24 11:56:17 +0900
commita39f218f22e8ec205291022f9b748d51daa8df3b (patch)
tree8be03487e7128d9e5f50188806359758ff820e76 /template
parentdf317151a5b4e0c5a30fcc321a9dc6abad63f7ed (diff)
downloadruby-a39f218f22e8ec205291022f9b748d51daa8df3b.tar.gz
Reduced duplicate commands in test-bundled-gems-run
Diffstat (limited to 'template')
-rw-r--r--template/Makefile.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/template/Makefile.in b/template/Makefile.in
index eae67a5d05..df424997f4 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -536,13 +536,11 @@ cont.$(OBJEXT): $(COROUTINE_H)
TEST_BUNDLED_GEMS_ALLOW_FAILURES =
test-bundled-gems-run:
- $(Q) set -e; while read gem _; do \
+ $(Q) while read gem _; do \
echo testing $$gem gem; \
- if echo $(TEST_BUNDLED_GEMS_ALLOW_FAILURES) | grep -q $$gem; then \
- $(XRUBY) -C $(srcdir)/gems/src/$$gem -Ilib ../../../.bundle/bin/rake || true; \
- else \
- $(XRUBY) -C $(srcdir)/gems/src/$$gem -Ilib ../../../.bundle/bin/rake; \
- fi; \
+ echo $(TEST_BUNDLED_GEMS_ALLOW_FAILURES) | grep -q $$gem || set -e; \
+ $(XRUBY) -C $(srcdir)/gems/src/$$gem -Ilib ../../../.bundle/bin/rake; \
+ set +e; \
done < $(srcdir)/gems/bundled_gems
update-src::