From: Zac Medico Date: Sun, 15 Aug 2010 07:14:10 +0000 (-0700) Subject: Set PORTAGE_PYTHON for ebuild.sh subprocesses. X-Git-Tag: v2.2_rc68~205 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc34e91446bc34e8e080a569e5a970d4459457c0;p=portage.git Set PORTAGE_PYTHON for ebuild.sh subprocesses. --- diff --git a/pym/portage/tests/ebuild/test_doebuild_spawn.py b/pym/portage/tests/ebuild/test_doebuild_spawn.py index dd0ddcbad..9882f2a03 100644 --- a/pym/portage/tests/ebuild/test_doebuild_spawn.py +++ b/pym/portage/tests/ebuild/test_doebuild_spawn.py @@ -1,6 +1,7 @@ # Copyright 2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +import sys from portage import os from portage import _shell_quote from portage.const import EBUILD_SH_BINARY @@ -24,6 +25,7 @@ class DoebuildSpawnTestCase(TestCase): cpv = 'sys-apps/portage-2.1' metadata = {} settings.setcpv(cpv, mydb=metadata) + settings['PORTAGE_PYTHON'] = sys.executable settings['PORTAGE_BUILDDIR'] = os.path.join( settings['PORTAGE_TMPDIR'], cpv) settings['T'] = os.path.join(