Skip to content

Add an opt-in engine test run for one disposable USB drive - #29

Merged
NitroDiesel merged 2 commits into
mainfrom
physical-usb-test
Nov 14, 2026
Merged

NitroDiesel merged 2 commits into
mainfrom
physical-usb-test

Conversation

@NitroDiesel

Copy link
Copy Markdown
Owner

The Windows engine has only been tested on virtual disks, and the tests refused anything else, so there was no repeatable way to run them on a real USB stick.

The elevated engine tests and the worker-pipe tests now also accept a removable USB drive whose exact serial is named in RUFUST_TEST_USB_SERIAL. scripts\windows\usb-tests.ps1 -DiskNumber N -Serial S checks the disk number, bus type and serial, runs the tests (file system providers, raw/gzip/VHDX image writes with read-back, Windows installer media, pipe format and cancellation), and leaves the stick as one FAT32 volume. Virtual disks behave as before.

It builds and the guard was checked against discovery (the Kingston's serial matches what Windows reports), but the script has not been run on physical media yet: the drive was unplugged. The smoke-test gate in docs/WINDOWS.md stays open.

🤖 Generated with Claude Code

NitroDiesel and others added 2 commits November 14, 2026 08:55
The elevated engine and worker-pipe tests refused everything but virtual
disks. They now also accept a removable USB drive whose exact serial is
named in RUFUST_TEST_USB_SERIAL, and scripts/windows/usb-tests.ps1 checks
the disk number, bus, and serial, runs them, and leaves the stick as
FAT32. Not yet run on physical media.

Co-Authored-By: Claude <noreply@anthropic.com>
scripts/windows/usb-tests.ps1 passed on a 16 GB Kingston DataTraveler 101
G2 under Windows 11, with the shared engine loops merged in locally.

Co-Authored-By: Claude <noreply@anthropic.com>
@NitroDiesel
NitroDiesel merged commit ed1904d into main Nov 14, 2026
11 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.

1 participant