Пример #1
0
    def find_existing_systems_with_task(self):
        """"Find existing GNU/Linux installations.

        The task will update data about existing installations.

        :return: a task
        """
        task = FindExistingSystemsTask(self.storage.devicetree)
        task.succeeded_signal.connect(
            lambda: self._update_existing_systems(task.get_result()))
        return task
Пример #2
0
    def find_existing_systems_with_task(self):
        """"Find existing GNU/Linux installations.

        The task will update data about existing installations.

        :return: a path to the task
        """
        task = FindExistingSystemsTask(self.storage.devicetree)
        task.succeeded_signal.connect(
            lambda: self._update_existing_systems(task.get_result()))
        path = self.publish_task(DEVICE_TREE_HANDLER.namespace, task)
        return path
Пример #3
0
 def test_find_existing_systems(self):
     storage = create_storage()
     task = FindExistingSystemsTask(storage.devicetree)
     self.assertEqual(task.run(), [])
 def test_find_existing_systems(self):
     storage = create_storage()
     task = FindExistingSystemsTask(storage.devicetree)
     assert task.run() == []