diff options
| author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2018-04-04 14:13:21 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:02 +0100 |
| commit | 1ef125ded6d4cc6f0e707a9fd6e0ab65e0dce47d (patch) | |
| tree | d3d97f6c41bfcebc35d25d8652dfacf2e53f0f3c /meta/lib | |
| parent | c292f9ebc5f3c4b06185482295694d7e3c059791 (diff) | |
| download | poky-1ef125ded6d4cc6f0e707a9fd6e0ab65e0dce47d.tar.gz | |
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>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/python.py | 6 |
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 bf3e179163..3d6eb08802 100644 --- a/meta/lib/oeqa/runtime/cases/python.py +++ b/meta/lib/oeqa/runtime/cases/python.py | |||
| @@ -20,16 +20,16 @@ class PythonTest(OERuntimeTestCase): | |||
| 20 | 20 | ||
| 21 | @OETestID(1145) | 21 | @OETestID(1145) |
| 22 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 22 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
| 23 | @OEHasPackage(['python-core']) | 23 | @OEHasPackage(['python3-core']) |
| 24 | def test_python_exists(self): | 24 | def test_python_exists(self): |
| 25 | status, output = self.target.run('which python') | 25 | status, output = self.target.run('which python3') |
| 26 | msg = 'Python binary not in PATH or not on target.' | 26 | msg = 'Python binary not in PATH or not on target.' |
| 27 | self.assertEqual(status, 0, msg=msg) | 27 | self.assertEqual(status, 0, msg=msg) |
| 28 | 28 | ||
| 29 | @OETestID(965) | 29 | @OETestID(965) |
| 30 | @OETestDepends(['python.PythonTest.test_python_exists']) | 30 | @OETestDepends(['python.PythonTest.test_python_exists']) |
| 31 | def test_python_stdout(self): | 31 | def test_python_stdout(self): |
| 32 | status, output = self.target.run('python /tmp/test.py') | 32 | status, output = self.target.run('python3 /tmp/test.py') |
| 33 | msg = 'Exit status was not 0. Output: %s' % output | 33 | msg = 'Exit status was not 0. Output: %s' % output |
| 34 | self.assertEqual(status, 0, msg=msg) | 34 | self.assertEqual(status, 0, msg=msg) |
| 35 | 35 | ||
