From 3e84107e40c1d9ea108dfc438f94bf513e8fd8cb Mon Sep 17 00:00:00 2001 From: He Zhe Date: Tue, 19 Apr 2016 12:34:59 +0800 Subject: openvswitch: ptest: Fix python path Set PYTHON to TARGET_PYTHON for running on target Signed-off-by: He Zhe Signed-off-by: Bruce Ashfield --- .../openvswitch-ptest-Fix-python-path.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch (limited to 'recipes-networking/openvswitch/openvswitch-git') diff --git a/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch b/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch new file mode 100644 index 00000000..c75ebc50 --- /dev/null +++ b/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch @@ -0,0 +1,30 @@ +From 2a78bddb865e0d3377f437428ed6825195af0a14 Mon Sep 17 00:00:00 2001 +From: He Zhe +Date: Wed, 13 Apr 2016 03:13:01 -0400 +Subject: [PATCH] openvswitch: ptest: Fix python path + +For now PYTHON just happens to be the same as TARGET_PYTHON so we get the right +python binary. This patch sets PYTHON to TARGET_PYTHON since ptest is going to +be run on target. + +Signed-off-by: He Zhe +--- + tests/atlocal.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/atlocal.in b/tests/atlocal.in +index 5815c6c..db2d2c9 100644 +--- a/tests/atlocal.in ++++ b/tests/atlocal.in +@@ -5,7 +5,7 @@ EGREP='@EGREP@' + PERL='@PERL@' + + if test x"$PYTHON" = x; then +- PYTHON='@PYTHON@' ++ PYTHON='@TARGET_PYTHON@' + fi + + PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH +-- +1.9.1 + -- cgit v1.2.3-54-g00ecf