From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms-test-suite-overlay:master commit in: eclass/
Date: Sun, 15 May 2011 17:29:40 +0000 (UTC) [thread overview]
Message-ID: <502d8a0ed68acb209d88a608b86963b1e19003ac.mgorny@gentoo> (raw)
commit: 502d8a0ed68acb209d88a608b86963b1e19003ac
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 15 17:29:31 2011 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 15 17:29:31 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite-overlay.git;a=commit;h=502d8a0e
Use dbus to report output to the runner.
---
eclass/pms-test.eclass | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/eclass/pms-test.eclass b/eclass/pms-test.eclass
index 27f5b1c..a715cf5 100644
--- a/eclass/pms-test.eclass
+++ b/eclass/pms-test.eclass
@@ -11,23 +11,22 @@ SLOT=${EAPI-0}
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
IUSE=""
+DEPEND="sys-apps/dbus"
+
EXPORT_FUNCTIONS pkg_setup
pms-test_pkg_setup() {
- [[ -n ${PMS_TEST_OUTPUT_DIR} ]] || die '${PMS_TEST_OUTPUT_DIR} unset!'
-
- # XXX: handle userpriv better
-
- addwrite "${PMS_TEST_OUTPUT_DIR}"
- if [[ ! -d ${PMS_TEST_OUTPUT_DIR} ]]; then
- mkdir -p "${PMS_TEST_OUTPUT_DIR}" || die
- chmod +x "${PMS_TEST_OUTPUT_DIR}" || die
- fi
-
- echo -n > "${PMS_TEST_OUTPUT_DIR}"/${P} || die
- chmod a+w "${PMS_TEST_OUTPUT_DIR}"/${P} || die
+ :
}
pms-test_append_result() {
- echo "${@}" >> "${PMS_TEST_OUTPUT_DIR}"/${P}
+ dbus-send \
+ --system \
+ --type=method_call \
+ --dest=org.gentoo.PMSTestSuite \
+ /org/gentoo/PMSTestSuite \
+ org.gentoo.PMSTestSuite.append_output \
+ string:${P} \
+ string:"${*}" \
+ || die 'Failed to append the test result using dbus'
}
next reply other threads:[~2011-05-15 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-15 17:29 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-05-15 20:48 [gentoo-commits] proj/pms-test-suite-overlay:master commit in: eclass/ Michał Górny
2011-05-19 17:34 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=502d8a0ed68acb209d88a608b86963b1e19003ac.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-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