From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/ebuild/
Date: Thu, 25 Jul 2013 20:42:28 +0000 (UTC) [thread overview]
Message-ID: <1374784808.3283b779608f35982792f95b9d8415a892dfb346.zmedico@gentoo> (raw)
commit: 3283b779608f35982792f95b9d8415a892dfb346
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 25 20:37:23 2013 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Jul 25 20:40:08 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3283b779
test_doebuild_fd_pipes: bsd compat
---
pym/portage/tests/ebuild/test_doebuild_fd_pipes.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/pym/portage/tests/ebuild/test_doebuild_fd_pipes.py b/pym/portage/tests/ebuild/test_doebuild_fd_pipes.py
index 91c5bd6..61392dd 100644
--- a/pym/portage/tests/ebuild/test_doebuild_fd_pipes.py
+++ b/pym/portage/tests/ebuild/test_doebuild_fd_pipes.py
@@ -52,6 +52,14 @@ class DoebuildFdPipesTestCase(TestCase):
}
}
+ # Override things that may be unavailable, or may have portability
+ # issues when running tests in exotic environments.
+ # prepstrip - bug #447810 (bash read builtin EINTR problem)
+ true_symlinks = ("find", "prepstrip", "sed", "scanelf")
+ true_binary = portage.process.find_binary("true")
+ self.assertEqual(true_binary is None, False,
+ "true command not found")
+
playground = ResolverPlayground(ebuilds=ebuilds)
try:
QueryCommand._db = playground.trees
@@ -68,6 +76,14 @@ class DoebuildFdPipesTestCase(TestCase):
settings['PORTAGE_PYTHON'] = portage._python_interpreter
settings['PORTAGE_QUIET'] = "1"
+ fake_bin = os.path.join(settings["EPREFIX"], "bin")
+ portage.util.ensure_dirs(fake_bin)
+ for x in true_symlinks:
+ os.symlink(true_binary, os.path.join(fake_bin, x))
+
+ settings["__PORTAGE_TEST_PATH_OVERRIDE"] = fake_bin
+ settings.backup_changes("__PORTAGE_TEST_PATH_OVERRIDE")
+
cpv = 'app-misct/foo-1'
metadata = dict(zip(Package.metadata_keys,
portdb.aux_get(cpv, Package.metadata_keys)))
next reply other threads:[~2013-07-25 20:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 20:42 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-01-17 2:55 [gentoo-commits] proj/portage:master commit in: pym/portage/tests/ebuild/ Zac Medico
2013-07-07 20:25 Zac Medico
2013-07-07 20:23 Zac Medico
2013-07-07 2:48 Zac Medico
2013-01-11 7:22 Zac Medico
2012-10-08 16:09 Zac Medico
2012-10-08 15:09 Zac Medico
2012-10-05 4:08 Zac Medico
2012-09-26 18:22 Zac Medico
2012-07-05 0:38 Zac Medico
2012-02-09 0:46 Zac Medico
2012-01-13 2:46 Zac Medico
2011-12-16 3:23 Zac Medico
2011-10-25 16:41 Zac Medico
2011-10-04 6:18 Zac Medico
2011-09-15 2:55 Zac Medico
2011-09-04 19:06 Zac Medico
2011-06-09 10:59 Zac Medico
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=1374784808.3283b779608f35982792f95b9d8415a892dfb346.zmedico@gentoo \
--to=zmedico@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