mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 08:48:45 +01:00
Fix up test case to match what binary prints. (From OE-Core rev: 4683804b9669c71d31ea6a8a300e6e87e817ee12) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
679 B
Python
22 lines
679 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 GoHelloworldTest(OERuntimeTestCase):
|
|
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
|
@OEHasPackage(['go-helloworld'])
|
|
def test_gohelloworld(self):
|
|
cmd = "go-helloworld"
|
|
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)
|