From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-portage-dev] [PATCH] Output uniform status message before and after src_test()
Date: Sun, 17 Aug 2014 00:22:16 +0200 [thread overview]
Message-ID: <1408227736-14310-1-git-send-email-mgorny@gentoo.org> (raw)
Before, the status message indicating src_test() run was output only if
the default EAPI implementation was used. If an ebuild overrode test
phase, the test phase output lacked delimitation. Instead, output
uniform status messages before and after running src_test() alike for
other phase functions.
---
bin/phase-functions.sh | 4 ++++
bin/phase-helpers.sh | 4 ----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
index f39a024..5795aac 100644
--- a/bin/phase-functions.sh
+++ b/bin/phase-functions.sh
@@ -489,7 +489,11 @@ __dyn_test() {
local save_sp=${SANDBOX_PREDICT}
addpredict /
__ebuild_phase pre_src_test
+
+ __vecho ">>> Test phase: ${CATEGORY}/${PF}"
__ebuild_phase src_test
+ __vecho ">>> Completed testing ${CATEGORY}/${PF}"
+
>> "$PORTAGE_BUILDDIR/.tested" || \
die "Failed to create $PORTAGE_BUILDDIR/.tested"
__ebuild_phase post_src_test
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 47bd843..1be550d 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -667,15 +667,11 @@ __eapi0_src_test() {
internal_opts+=" -j1"
fi
if $emake_cmd ${internal_opts} check -n &> /dev/null; then
- __vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
$emake_cmd ${internal_opts} check || \
die "Make check failed. See above for details."
elif $emake_cmd ${internal_opts} test -n &> /dev/null; then
- __vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
$emake_cmd ${internal_opts} test || \
die "Make test failed. See above for details."
- else
- __vecho ">>> Test phase [none]: ${CATEGORY}/${PF}"
fi
}
--
2.0.4
next reply other threads:[~2014-08-16 22:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-16 22:22 Michał Górny [this message]
2014-08-17 13:02 ` [gentoo-portage-dev] [PATCH] Output uniform status message before and after src_test() Alexander Berntsen
2014-09-12 7:16 ` Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1408227736-14310-1-git-send-email-mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox