debian-forge/test/run
Christian Kellner a5e07cf506 devices: introduce new device manager class
Introduce a new class to manage devices, `DeviceManger` and move the
code to open devices from the `Device` here. The main insight of why
the logic should be place here is that certain information is needed
to open the devices, independently of specific type: the path to the
device node directory, `devpath`, the actual `tree` and the service
manager instance to start the actual service. Instead of passing all
this information again and again to the `Device` class, we now have
a specialized (service) manager class for devices that has all the
needed information all the time. Additionally, the special handling
of parent devices is moved from the pipeline to the service manager,
which is where it belongs.
This will make even more sense for mounts, where the `DeviceManger`
can then be passed to access the individual devices.
Port the test to use the `DeviceManager`.
2021-10-30 15:32:44 +01:00
..
__init__.py test: '{. -> ./run}/test_sources.py' 2020-04-24 15:50:44 +02:00
test_assemblers.py test/assembler: use new loop_for_fd helper 2021-08-11 20:59:51 +02:00
test_boot.py test: remove unittest dependency for OSBuild 2021-06-21 18:56:38 +02:00
test_devices.py devices: introduce new device manager class 2021-10-30 15:32:44 +01:00
test_executable.py test: remove unittest dependency for OSBuild 2021-06-21 18:56:38 +02:00
test_noop.py test: convert to pytest test_noop.py 2021-08-12 09:34:33 +02:00
test_ostree.py test/ostree: add v2 tarball build 2021-06-21 18:56:38 +02:00
test_sources.py sources: port to host services 2021-09-22 00:00:20 +02:00
test_stages.py test/stages: add check for parted stage 2021-10-30 00:54:09 +01:00