mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

Where there isn't a copyright statement, add one to make it explicit. Also add license identifiers as MIT if there isn't one. (From OE-Core rev: bb731d1f3d2a1d50ec0aed864dbca54cf795b040) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
728 B
Python
22 lines
728 B
Python
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
from oeqa.runtime.case import OERuntimeTestCase
|
|
from oeqa.core.decorator.depends import OETestDepends
|
|
from oeqa.runtime.decorator.package import OEHasPackage
|
|
|
|
class PythonTest(OERuntimeTestCase):
|
|
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
|
@OEHasPackage(['python3-core'])
|
|
def test_python3(self):
|
|
cmd = "python3 -c \"import codecs; print(codecs.encode('Uryyb, jbeyq', 'rot13'))\""
|
|
status, output = self.target.run(cmd)
|
|
msg = 'Exit status was not 0. Output: %s' % output
|
|
self.assertEqual(status, 0, msg=msg)
|
|
|
|
msg = 'Incorrect output: %s' % output
|
|
self.assertEqual(output, "Hello, world", msg=msg)
|