qemu/tests/test_qmp_drive.py leaves its temp dirs behind (qmpdrive.*, console.*, qmpsock.*) #30

Closed
opened 2026-10-27 18:01:59 -06:00 by noah · 0 comments
Owner

Every run of python3 qemu/tests/test_qmp_drive.py leaves about 40 directories in $TMPDIR: run_script makes a qmpdrive.* dir per drive and never removes it, and the console-watch, reboot, race and wedged-QMP tests do the same with console.* and qmpsock.*. The flare-edge workstation had 446 qmpdrive.* and 153 console.*/qmpsock.* dirs in /tmp, which is RAM-backed there; CI runners keep them until the job container goes.

Expected: a run leaves $TMPDIR as it found it.

Fix: the module puts every temp dir under one per-run root that is removed at exit, with a regression test that runs a drive test in a child process under a fresh TMPDIR and checks it is empty afterwards. Lane LN.

Every run of `python3 qemu/tests/test_qmp_drive.py` leaves about 40 directories in $TMPDIR: `run_script` makes a `qmpdrive.*` dir per drive and never removes it, and the console-watch, reboot, race and wedged-QMP tests do the same with `console.*` and `qmpsock.*`. The flare-edge workstation had 446 `qmpdrive.*` and 153 `console.*`/`qmpsock.*` dirs in /tmp, which is RAM-backed there; CI runners keep them until the job container goes. Expected: a run leaves $TMPDIR as it found it. Fix: the module puts every temp dir under one per-run root that is removed at exit, with a regression test that runs a drive test in a child process under a fresh TMPDIR and checks it is empty afterwards. Lane LN.
noah closed this issue 2026-10-27 19:37:42 -06:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#30