mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-18 10:41:30 -10:00
Signed-off-by: Manuel Diener <manuel.diener@oss.othermo.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
21 lines
667 B
Python
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
|
|
"""
|