aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-14 00:28:36 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-14 00:28:36 +0200
commit1aca7a6adf643afde027778f1acbde7226dcea72 (patch)
treefddc8859a1be3657d6e4e71221c8a2e5ec12d628 /pym/portage/tests/ebuild/test_ipc_daemon.py
parentSetup EBUILD_MASTER_PID at the bottom, for scripts that source (diff)
downloadportage-1aca7a6adf643afde027778f1acbde7226dcea72.tar.gz
portage-1aca7a6adf643afde027778f1acbde7226dcea72.tar.bz2
portage-1aca7a6adf643afde027778f1acbde7226dcea72.zip
Ensure that all Python processes use the same version of Python.
Diffstat (limited to 'pym/portage/tests/ebuild/test_ipc_daemon.py')
-rw-r--r--pym/portage/tests/ebuild/test_ipc_daemon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/tests/ebuild/test_ipc_daemon.py b/pym/portage/tests/ebuild/test_ipc_daemon.py
index de548c6f1..4b7406deb 100644
--- a/pym/portage/tests/ebuild/test_ipc_daemon.py
+++ b/pym/portage/tests/ebuild/test_ipc_daemon.py
@@ -1,6 +1,7 @@
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+import os
import shutil
import tempfile
from portage import os
@@ -19,6 +20,7 @@ class IpcDaemonTestCase(TestCase):
tmpdir = tempfile.mkdtemp()
try:
env = {}
+ env['PORTAGE_PYTHON'] = os.environ['PORTAGE_PYTHON']
env['PORTAGE_BIN_PATH'] = PORTAGE_BIN_PATH
env['PORTAGE_PYM_PATH'] = PORTAGE_PYM_PATH
env['PORTAGE_BUILDDIR'] = tmpdir