debian-forge/test
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
..
cases test/ostree-image: +fedora-ostree-native-container 2022-12-15 11:13:19 +01:00
data test: add unit test for sfdisk stage 2023-05-30 12:05:33 +02:00
mod Test: some tests depending on rpm-ostree were not checking its presence 2023-04-28 22:02:35 +02:00
run test/stages: add helper function for testing partitioning stages 2023-05-30 12:05:33 +02:00
src test/src: improve file enumeration 2022-09-23 12:08:10 +02:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
conftest.py Test: add ability to skip tests for unsupported file-systems 2023-04-21 17:13:10 +02:00
initrd.py test: explicit encodings for open() 2022-09-09 15:33:29 +02:00
test.py Test: add ability to skip tests for unsupported file-systems 2023-04-21 17:13:10 +02:00