Closed ancorgs closed 1 year ago
:heavy_check_mark: Public Jenkins job #444 successfully finished :heavy_check_mark: Created OBS submit request #1030324
:heavy_check_mark: Internal Jenkins job #231 successfully finished :heavy_check_mark: Created IBS submit request #283189
Problem
This was changed in libstorage-ng https://github.com/openSUSE/libstorage-ng/pull/900
Before that,
ms_dos_ptable.partition_id_supported?(Y2Storage::PartitionId::UNKNOWN)
returned false. Now it returns true.The change is actually safe for the current code-base of yast-storage-ng (see below), but it broke the unit tests we intentionally have in place to detect changes in the libstorage-ng API (so we can manually check if there is any problematic implication).
Solution
Just adapt the test to the new behavior of libstorage-ng. We verified the change is safe because:
PartitionTables::Base#supported_partition_ids
already filters UNKNOWN out. Among other things, that already guarantees UNKNOWN is never offered as an option in the UI.whatever_ptable.partition_id_supported?(Y2Storage::PartitionId::UNKNOWN)
have always returned true for partition tables of type DASD and GPT and has never been a problem so far. Actually MS-DOS was the exception here.