mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 09:16:36 +01:00
Clean up lots of dependency checking code by using the new helpers. This means that a lot of tests that were previously skipped inside the eSDK testing on the autobuilder are now executed, and fail. (From OE-Core rev: 11277efd057685558a744e98082b5709e849dd2a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
523 B
Python
20 lines
523 B
Python
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
from oeqa.sdk.case import OESDKTestCase
|
|
|
|
from oeqa.utils.subprocesstweak import errors_have_output
|
|
errors_have_output()
|
|
|
|
class Python3Test(OESDKTestCase):
|
|
def setUp(self):
|
|
self.ensure_host_package("python3-core", recipe="python3")
|
|
|
|
def test_python3(self):
|
|
cmd = "python3 -c \"import codecs; print(codecs.encode('Uryyb, jbeyq', 'rot13'))\""
|
|
output = self._run(cmd)
|
|
self.assertEqual(output, "Hello, world\n")
|