From 8c9d0df20185ee48bc594a4a120daa5ea9c9aa1a Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sun, 22 Jul 2012 11:31:32 +0200 Subject: [PATCH] [ng] check: in recipes, don't use pipe when redirection suffices Instead of the botched idiom: while read c; do echo $c; done Signed-off-by: Stefano Lattarini --- lib/am/parallel-tests.am | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/am/parallel-tests.am b/lib/am/parallel-tests.am index 048cdfada..39e75e700 100644 --- a/lib/am/parallel-tests.am +++ b/lib/am/parallel-tests.am @@ -406,8 +406,7 @@ $(TEST_SUITE_LOG): $(am__test_logs) $(am__test_results) echo; \ echo ".. contents:: :depth: 2"; \ echo; \ - while read b; do echo $$b; done <$$workdir/bases \ - | $(am__create_global_log); \ + $(am__create_global_log) <$$workdir/bases; \ } >$(TEST_SUITE_LOG).tmp; then \ mv -f $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ else \ @@ -471,9 +470,8 @@ recheck: all %CHECK_DEPS% @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) ## If running a "make recheck", we must only consider tests that had an ## unexpected outcome (FAIL or XPASS) in the earlier run. - @bases=`while read b; do echo $$b; done \ - <$(am.test-harness.workdir)/bases \ - | $(am__list_recheck_tests)` || exit 1; \ + @bases=`$(am__list_recheck_tests) \ + <$(am.test-harness.workdir)/bases` || exit 1; \ ## Remove newlines and normalize whitespace. bases=`echo $$bases`; \ ## Re-run the relevant tests, without hitting command-line length limits. -- 2.47.2