Files
buildroot/support/testing/tests/package/test_python_questionary.py
Manuel Diener 2fe27d55f1 package/python-questionary: new package
Signed-off-by: Manuel Diener <manuel.diener@oss.othermo.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2026-10-22 23:59:10 +02:00

21 lines
667 B
Python

from tests.package.test_python import TestPythonPackageBase
class TestPythonQuestionary(TestPythonPackageBase):
sample_scripts = ["tests/package/sample_python_questionary.py"]
def run_sample_scripts(self):
cmd = self.interpreter + " sample_python_questionary.py"
output, exit_code = self.emulator.run(cmd, timeout=10)
self.assertIn("Press any key to continue...", output[0])
self.assertEqual(exit_code, 1)
class TestPythonPy3Questionary(TestPythonQuestionary):
__test__ = True
config = TestPythonQuestionary.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_QUESTIONARY=y
"""