debian-forge/test/run
Tomáš Hozza 15b7b6fab3 test/stages: add helper function for testing partitioning stages
Refactor unit test implementation for `parted`, `sfdisk` and `sgdisk`
stages by extracting the common parts into a helper function. Each stage
now implements only its own function for filtering `sfdisk --json`
output and calls the common helper function.

In addition, flip the oder when comparing the expected and actual output
from `sfdisk --json`, to make it more easier to comprehend.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-05-30 12:05:33 +02:00
..
__init__.py test: '{. -> ./run}/test_sources.py' 2020-04-24 15:50:44 +02:00
test_assemblers.py Test: some tests depending on rpm-ostree were not checking its presence 2023-04-28 22:02:35 +02:00
test_boot.py test: explicit encodings for open() 2022-09-09 15:33:29 +02:00
test_devices.py loop: use LOOP_CONFIGURE instead of LOOP_SET_FD 2023-05-05 15:42:47 +02:00
test_executable.py test: fix executable test 2022-02-15 13:25:23 +00:00
test_mount.py Don't use capture_output=True with subprocess.run() 2023-04-26 11:43:13 +02:00
test_noop.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
test_sources.py Don't use directory argument with SimpleHTTPRequestHandler constructor 2023-04-26 11:43:13 +02:00
test_stages.py test/stages: add helper function for testing partitioning stages 2023-05-30 12:05:33 +02:00