From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 930ED138010 for ; Wed, 29 Aug 2012 16:43:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BB66E019D; Wed, 29 Aug 2012 16:43:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 57273E019D for ; Wed, 29 Aug 2012 16:43:47 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9015533DDFE for ; Wed, 29 Aug 2012 16:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 48078E543C for ; Wed, 29 Aug 2012 16:43:45 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1346258612.9f14ed80e65a18da06e0834961ea032e3e830319.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/phase-helpers.sh X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 9f14ed80e65a18da06e0834961ea032e3e830319 X-VCS-Branch: master Date: Wed, 29 Aug 2012 16:43:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 71ace49d-b89a-40e5-823c-7d00a651f8c3 X-Archives-Hash: 690f7eb2e1764a755356348eb55698b0 commit: 9f14ed80e65a18da06e0834961ea032e3e830319 Author: Zac Medico gentoo org> AuthorDate: Wed Aug 29 16:43:32 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Aug 29 16:43:32 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9f14ed80 EAPI 5: src_test support for parallel tests See bug #363005 and the PMS patch: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=3ec4b3c22582a8ec206bce1e93bab377d7b264b5 --- bin/phase-helpers.sh | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index a00475c..3f02c07 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -544,13 +544,19 @@ _eapi0_src_test() { # we call it in 'nonfatal' mode, we use emake_cmd # to emulate the desired parts of emake behavior. local emake_cmd="${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE}" - if $emake_cmd -j1 check -n &> /dev/null; then + local internal_opts= + case "$EAPI" in + 0|1|2|3|4|4-python|4-slot-abi) + internal_opts+=" -j1" + ;; + esac + if $emake_cmd ${internal_opts} check -n &> /dev/null; then vecho ">>> Test phase [check]: ${CATEGORY}/${PF}" - $emake_cmd -j1 check || \ + $emake_cmd ${internal_opts} check || \ die "Make check failed. See above for details." - elif $emake_cmd -j1 test -n &> /dev/null; then + elif $emake_cmd ${internal_opts} test -n &> /dev/null; then vecho ">>> Test phase [test]: ${CATEGORY}/${PF}" - $emake_cmd -j1 test || \ + $emake_cmd ${internal_opts} test || \ die "Make test failed. See above for details." else vecho ">>> Test phase [none]: ${CATEGORY}/${PF}"