From: Stefano Lattarini Date: Sun, 22 Jul 2012 09:31:32 +0000 (+0200) Subject: [ng] check: in recipes, don't use pipe when redirection suffices X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c9d0df20185ee48bc594a4a120daa5ea9c9aa1a;p=thirdparty%2Fautomake.git [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 --- 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.