Kaydet (Commit) 0fcc1968 authored tarafından Michael Stahl's avatar Michael Stahl

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
üst b865ff3d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment