diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-04-19 16:11:24 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-04-19 16:17:36 +0200 |
commit | 0fcc1968daa6b6c877a3c17cc800b47d82c8a10f (patch) | |
tree | 3565d7c20a7200c095488e9bf1cf37ef74622f7f /solenv/gbuild/PythonTest.mk | |
parent | b865ff3d75a4611eaefe1f35b0dc9c7d9256f1ff (diff) |
gbuild: PythonTest: do not invoke the python.bin directly
This works to run the test (with the fixed RPATH in python.bin from
previous commit), but debugging with gdb becomes impossible.
The tests need PYTHONPATH set to find the internal python libraries,
but gdb also uses PYTHONPATH and then tries to load the libraries
there which do not necessarily match the Python version that gdb
is built against. Invoking the python wrapper shell script avoids this,
and since that "exec"'s python.bin debugging with gdb works too.
Change-Id: I6ea2feb44cebeda1ba2c397baa3837f9f1259a08
Diffstat (limited to 'solenv/gbuild/PythonTest.mk')
-rw-r--r-- | solenv/gbuild/PythonTest.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gbuild/PythonTest.mk b/solenv/gbuild/PythonTest.mk index 199ffcc0fe1f..bbf787778e0a 100644 --- a/solenv/gbuild/PythonTest.mk +++ b/solenv/gbuild/PythonTest.mk @@ -10,7 +10,7 @@ # PythonTest class ifeq ($(SYSTEM_PYTHON),NO) -gb_Python_EXE := $(OUTDIR)/installation/opt/program/python.bin +gb_Python_EXE := /bin/sh $(DEVINSTALLDIR)/opt/program/python else gb_Python_EXE := $(PYTHON_FOR_BUILD) endif |