Skip to content

tests: Keep partition open across DOS type changes - #1562

Merged
tbzatek merged 1 commit into
storaged-project:masterfrom
tbzatek:tests-part-dos-1
Oct 22, 2026
Merged

tbzatek merged 1 commit into
storaged-project:masterfrom
tbzatek:tests-part-dos-1

Conversation

@tbzatek

@tbzatek tbzatek commented Oct 22, 2026

Copy link
Copy Markdown
Member

test_dos_type can fail with UnknownMethod when udev removes and recreates the partition between SetType() calls. The flight record shows the object disappearing after the invalid partition ID is rejected, with the next valid SetType() call arriving before the object is exported again.

Keep the partition open throughout the sequence to prevent BLKRRPART from removing it between calls. Register the descriptor for cleanup before the partition is deleted.

test_dos_type can fail with UnknownMethod when udev removes and recreates
the partition between SetType() calls. The flight record shows the object
disappearing after the invalid partition ID is rejected, with the next
valid SetType() call arriving before the object is exported again.

Keep the partition open throughout the sequence to prevent BLKRRPART from
removing it between calls. Register the descriptor for cleanup before
the partition is deleted.
@tbzatek
tbzatek merged commit f6930dd into storaged-project:master Oct 22, 2026
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants