Skip to contentSkip to conversation

openvswitch: ptest: Fix python path

PATCH In review [email protected] 2 participants 2 messages Apr 19, 2016 – Apr 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openvswitch: ptest: Fix python path

From: He Zhe <[email protected]>

Set PYTHON to TARGET_PYTHON for running on target

---
 .../openvswitch-ptest-Fix-python-path.patch        | 30 ++++++++++++++++++++++
 recipes-networking/openvswitch/openvswitch_git.bb  |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch new file +30 -0
new file mode 100644
index 0000000..c75ebc5
@@ -0,0 +1,30 @@
+From 2a78bddb865e0d3377f437428ed6825195af0a14 Mon Sep 17 00:00:00 2001
+From: He Zhe <[email protected]>
+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 <[email protected]>
+---
+ 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
+
recipes-networking/openvswitch/openvswitch_git.bb +1 -0
index 2f7fe3e..b46d5af 100644
@@ -24,6 +24,7 @@ SRC_URI += "\
 	file://run-ptest \
 	file://disable_m4_check.patch \
 	file://kernel_module.patch \
+	file://openvswitch-ptest-Fix-python-path.patch \
 	"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=247d8817aece26b21a8cd6791b3ea994"
Signature · 1 line
2.8.1
#1 lore raw

merged.

Bruce

Quoted 76 lines · On Tue, Apr 19, 2016 at 12:34 AM, <[email protected]> wrote:

From: He Zhe <[email protected]>

Set PYTHON to TARGET_PYTHON for running on target

---
 .../openvswitch-ptest-Fix-python-path.patch        | 30
++++++++++++++++++++++
 recipes-networking/openvswitch/openvswitch_git.bb  |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644

recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch

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 0000000..c75ebc5
--- /dev/null
+++
b/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch

recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch new file +6 -0
@@ -0,0 +1,30 @@
+From 2a78bddb865e0d3377f437428ed6825195af0a14 Mon Sep 17 00:00:00 2001
+From: He Zhe <[email protected]>
+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

recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch new file +23 -0
+be run on target.
+
+Signed-off-by: He Zhe <[email protected]>
+---
+ 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
+
recipes-networking/openvswitch/openvswitch_git.bb +1 -1
index 2f7fe3e..b46d5af 100644
@@ -24,6 +24,7 @@ SRC_URI += "\
        file://run-ptest \
        file://disable_m4_check.patch \
        file://kernel_module.patch \
+       file://openvswitch-ptest-Fix-python-path.patch \
        "
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=247d8817aece26b21a8cd6791b3ea994"
--

2.8.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"