From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 824D01396D0 for ; Thu, 24 Aug 2017 19:02:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC903E0D82; Thu, 24 Aug 2017 19:02:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB503E0D47 for ; Thu, 24 Aug 2017 19:02:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EE60334069A for ; Thu, 24 Aug 2017 19:02:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE4DB814E for ; Thu, 24 Aug 2017 19:02:04 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1503601201.96ce954fee8e464edadc473a5ba2da8b8352b6cb.gokturk@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_test/ X-VCS-Repository: proj/devmanual X-VCS-Files: ebuild-writing/functions/src_test/text.xml X-VCS-Directories: ebuild-writing/functions/src_test/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: 96ce954fee8e464edadc473a5ba2da8b8352b6cb X-VCS-Branch: master Date: Thu, 24 Aug 2017 19:02:04 +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: ee85e6f2-3161-4049-94ec-c247ec697e35 X-Archives-Hash: 3e1951ee55d1d928d18bc6846c5f3ef5 commit: 96ce954fee8e464edadc473a5ba2da8b8352b6cb Author: Michał Górny gentoo org> AuthorDate: Tue Aug 22 08:51:57 2017 +0000 Commit: Göktürk Yüksek gentoo org> CommitDate: Thu Aug 24 19:00:01 2017 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=96ce954f ebuild-writing/.../src_test: Update the default implementation ebuild-writing/functions/src_test/text.xml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/ebuild-writing/functions/src_test/text.xml b/ebuild-writing/functions/src_test/text.xml index f058006..5d1ba3f 100644 --- a/ebuild-writing/functions/src_test/text.xml +++ b/ebuild-writing/functions/src_test/text.xml @@ -31,23 +31,13 @@
Default <c>src_test</c> -

From sys-apps/portage-2.1.2.9

+

The default test phase in EAPI 6 is equivalent to the following:

src_test() { - if emake -j1 check -n &> /dev/null; then - vecho ">>> Test phase [check]: ${CATEGORY}/${PF}" - if ! emake -j1 check; then - hasq test $FEATURES && die "Make check failed. See above for details." - hasq test $FEATURES || eerror "Make check failed. See above for details." - fi - elif emake -j1 test -n &> /dev/null; then - vecho ">>> Test phase [test]: ${CATEGORY}/${PF}" - if ! emake -j1 test; then - hasq test $FEATURES && die "Make test failed. See above for details." - hasq test $FEATURES || eerror "Make test failed. See above for details." - fi - else - vecho ">>> Test phase [none]: ${CATEGORY}/${PF}" + if emake check -n &> /dev/null; then + emake check + elif emake test -n &> /dev/null; then + emake test fi }