Skip to content

test.nix: add a test to forcefully remove a usb blockdevice from the quemu host#182

Draft
Noi0103 wants to merge 2 commits intomainfrom
Noi0103/ci-test-hotplugging-survive-real-device
Draft

test.nix: add a test to forcefully remove a usb blockdevice from the quemu host#182
Noi0103 wants to merge 2 commits intomainfrom
Noi0103/ci-test-hotplugging-survive-real-device

Conversation

@Noi0103
Copy link
Member

@Noi0103 Noi0103 commented Feb 4, 2026

Now that we have a working graceful attach and detach we can look into a forceful removal of the hardware (due to actual removal, hardware failure or other reasons).

This test does just that, a forceful removal of the blockdevice attached to the QEMU test VM.

There is one blemish in the current TestScript: The udev rule is not automatically being triggered when attaching a blockdevice with QEMU Machine Protocol (QMP). Using a manual udevadm trigger the rule does however work and creates the symlink we use to attach the device to usbvfiod.

This will at least stay a draft until we handle the clean up of devices properly when we encounter a nusb error.

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.

1 participant