From: "Ian Delaney" <idella4@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/classified-ads/
Date: Sun, 27 Dec 2015 10:08:20 +0000 (UTC) [thread overview]
Message-ID: <1451094436.537312b16550a72b3881d79377a670bc3b29e7e8.idella4@gentoo> (raw)
commit: 537312b16550a72b3881d79377a670bc3b29e7e8
Author: Antti Jarvinen <antti.jarvinen <AT> katiska <DOT> org>
AuthorDate: Sat Dec 26 01:47:16 2015 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Sat Dec 26 01:47:16 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=537312b1
net-p2p/classified-ads: Bug 568874 - use correct qmake version
Due to comments at https://github.com/gentoo/gentoo/pull/500
simplified src_test somewhat. Tried out with sandbox and
without, with failing test case and all-passing case:
seems to work.
Package-Manager: portage-2.2.20.1
.../classified-ads-0.09_p20151220.ebuild | 23 ++++++++--------------
1 file changed, 8 insertions(+), 15 deletions(-)
diff --git a/net-p2p/classified-ads/classified-ads-0.09_p20151220.ebuild b/net-p2p/classified-ads/classified-ads-0.09_p20151220.ebuild
index 8f5b26d..df2195a 100644
--- a/net-p2p/classified-ads/classified-ads-0.09_p20151220.ebuild
+++ b/net-p2p/classified-ads/classified-ads-0.09_p20151220.ebuild
@@ -58,25 +58,18 @@ src_test() {
cd test || die "test suite missing"
"$(qt4_get_bindir)"/qmake || die "test suite configure failed"
emake
-
- if [ -e $HOME/.classified_ads/sqlite_db ]; then
- mv $HOME/.classified_ads/sqlite_db $HOME/.classified_ads/sqlite_db.backup \
- || die "datafile backup failed"
- fi
+ # test suite will create files under $HOME, set $HOME to point to
+ # safe location, ideas stolen from
+ # eclass/distutils-r1.eclass func distutils_install_for_testing
+ BACKUP_HOME=$HOME
+ export HOME=${BUILD_DIR}/tmp
+ mkdir -p $HOME || true
./testca
result=$?
- rm -f $HOME/.classified_ads/sqlite_db
-
- if [ -e $HOME/.classified_ads/sqlite_db.backup ]; then
- mv $HOME/.classified_ads/sqlite_db.backup $HOME/.classified_ads/sqlite_db \
- || die "datafile restore failed"
- fi
-
+ export HOME=$BACKUP_HOME
if [ $result != "0" ]; then
- die "test failed with code $result"
+ die "test suite failed with error code " `echo $result`
fi
-
- return $result
}
src_install() {
next reply other threads:[~2015-12-27 10:08 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-27 10:08 Ian Delaney [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-07 8:01 [gentoo-commits] repo/gentoo:master commit in: net-p2p/classified-ads/ Joonas Niilola
2022-07-02 17:35 Joonas Niilola
2022-04-22 6:18 Joonas Niilola
2021-06-22 18:19 Sam James
2020-09-20 13:51 David Seifert
2018-08-18 7:19 Michał Górny
2018-02-11 11:12 Michał Górny
2018-01-05 15:38 Ulrich Müller
2017-11-26 23:23 David Seifert
2017-09-09 16:13 Michael Palimaka
2017-09-09 16:13 Michael Palimaka
2016-07-08 19:06 Patrice Clement
2016-05-29 14:19 Pacho Ramos
2016-05-16 9:31 Ian Delaney
2016-05-12 2:50 Ian Delaney
2016-05-12 2:50 Ian Delaney
2016-05-07 21:24 Michał Górny
2016-05-03 6:45 Ian Delaney
2016-05-03 6:45 Ian Delaney
2016-05-03 6:45 Ian Delaney
2016-05-03 6:45 Ian Delaney
2016-05-03 3:41 Ian Delaney
2016-05-03 3:41 Ian Delaney
2016-05-03 3:41 Ian Delaney
2016-05-03 3:41 Ian Delaney
2015-12-27 10:08 Ian Delaney
2015-12-27 10:08 Ian Delaney
2015-10-13 4:41 Ian Delaney
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=1451094436.537312b16550a72b3881d79377a670bc3b29e7e8.idella4@gentoo \
--to=idella4@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