diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-01-10 04:03:45 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-01-10 04:06:06 -0800 |
commit | 2d76e5e77d2be40f5635140dbbbf0b4d60f20dc1 (patch) | |
tree | d0956fed0b7f3d115f747e2890e3343f9ef5e697 /pym/portage/tests | |
parent | 2642def0f2deb121a41ae9e20de38a67cfc0af16 (diff) | |
download | portage-2d76e5e77d2be40f5635140dbbbf0b4d60f20dc1.tar.gz portage-2d76e5e77d2be40f5635140dbbbf0b4d60f20dc1.tar.bz2 portage-2d76e5e77d2be40f5635140dbbbf0b4d60f20dc1.zip |
emerge/test_simple.py: override PATH more
Override things that may be unavailable, or may have portability
issues when running tests in exotic environments.
Diffstat (limited to 'pym/portage/tests')
-rw-r--r-- | pym/portage/tests/emerge/test_simple.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py index a22e2b37d..282a045ed 100644 --- a/pym/portage/tests/emerge/test_simple.py +++ b/pym/portage/tests/emerge/test_simple.py @@ -1,4 +1,4 @@ -# Copyright 2011-2012 Gentoo Foundation +# Copyright 2011-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import subprocess @@ -302,6 +302,7 @@ pkg_preinst() { "PORTAGE_PYTHON" : portage_python, "PORTAGE_TMPDIR" : portage_tmpdir, "PYTHONPATH" : pythonpath, + "__PORTAGE_TEST_PATH_OVERRIDE" : fake_bin, } if "__PORTAGE_TEST_HARDLINK_LOCKS" in os.environ: @@ -312,7 +313,10 @@ pkg_preinst() { dirs = [cachedir, cachedir_pregen, distdir, fake_bin, portage_tmpdir, updates_dir, user_config_dir, var_cache_edb] - true_symlinks = ["chown", "chgrp"] + # 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", "gawk", "prepstrip", "sed", "scanelf"] true_binary = find_binary("true") self.assertEqual(true_binary is None, False, "true command not found") |