aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-04-04 14:13:21 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 22:13:06 +0000
commitbde50fc78ae75fd585f8914e458d65c328857fb2 (patch)
treef3eca9b5c0a1e6fae8b51c801bfe3b04b465a9f2
parente5bebaddab47b418013f3d329dbb105ce69118bf (diff)
downloadopenembedded-core-contrib-bde50fc78ae75fd585f8914e458d65c328857fb2.tar.gz
openembedded-core-contrib-bde50fc78ae75fd585f8914e458d65c328857fb2.tar.bz2
openembedded-core-contrib-bde50fc78ae75fd585f8914e458d65c328857fb2.zip
oeqa/runtime/cases/python: use python 3 rather than python 2
For example, core-image-sato skipped the test alltogether, as it no longer pulls in Python 2.x at all. (From OE-Core rev: 5ad0fe9ac6b6362011a17afaa7bee8e788093915) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/lib/oeqa/runtime/cases/python.py6
1 files changed, 3 insertions, 3 deletions
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)