]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/cases/python: use python 3 rather than python 2
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Wed, 4 Apr 2018 11:13:21 +0000 (14:13 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 May 2018 08:54:52 +0000 (09:54 +0100)
For example, core-image-sato skipped the test alltogether, as it
no longer pulls in Python 2.x at all.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/python.py

index bf3e17916389bde106749f07f8a50e2b53ffe710..3d6eb08802494852a6523889fd5156a5677e783b 100644 (file)
@@ -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)