import textwrap
from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3DBusNext(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_DBUS=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_DBUS_NEXT=y
"""
sample_scripts = ["tests/package/sample_python_dbus_next.py"]
def run_sample_scripts(self):
config = \
"""
"""
config = textwrap.dedent(config)
config_dir = "/etc/dbus-1/system.d"
config_fn = "dbus.next.sample.conf"
# Setup and reload D-Bus configuration
self.emulator.run("mkdir -p " + config_dir)
self.emulator.run("cat > " + config_dir + "/" + config_fn +
" <