diff mbox series

oeqa/runtime/python: port to Python 3

Message ID 20171107103239.9357-1-ross.burton@intel.com
State New
Headers show
Series oeqa/runtime/python: port to Python 3 | expand

Commit Message

Ross Burton Nov. 7, 2017, 10:32 a.m. UTC
Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/lib/oeqa/runtime/cases/python.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/lib/oeqa/runtime/cases/python.py b/meta/lib/oeqa/runtime/cases/python.py
index bf3e1791638..3d6eb088024 100644
--- a/meta/lib/oeqa/runtime/cases/python.py
+++ b/meta/lib/oeqa/runtime/cases/python.py
@@ -20,16 +20,16 @@  class PythonTest(OERuntimeTestCase):
 
     @OETestID(1145)
     @OETestDepends(['ssh.SSHTest.test_ssh'])
-    @OEHasPackage(['python-core'])
+    @OEHasPackage(['python3-core'])
     def test_python_exists(self):
-        status, output = self.target.run('which python')
+        status, output = self.target.run('which python3')
         msg = 'Python binary not in PATH or not on target.'
         self.assertEqual(status, 0, msg=msg)
 
     @OETestID(965)
     @OETestDepends(['python.PythonTest.test_python_exists'])
     def test_python_stdout(self):
-        status, output = self.target.run('python /tmp/test.py')
+        status, output = self.target.run('python3 /tmp/test.py')
         msg = 'Exit status was not 0. Output: %s' % output
         self.assertEqual(status, 0, msg=msg)