Use the preferred blockdev-change-medium command instead. Admittedly, use of 'device' is also deprecated over the newer use of 'id', but the test is exploiting that the name 'floppy0' is auto-created by the board, and I could not figure out where the command line lives that would need to be tweaked to provide a non-random 'id' to this device.
Signed-off-by: Eric Blake <ebl...@redhat.com> Reviewed-by: John Snow <js...@redhat.com> --- v3: update commit message to point out that we are still using deprecated 'device' --- tests/fdc-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/fdc-test.c b/tests/fdc-test.c index 738c6b4..f5ff68d 100644 --- a/tests/fdc-test.c +++ b/tests/fdc-test.c @@ -298,8 +298,9 @@ static void test_media_insert(void) /* Insert media in drive. DSKCHK should not be reset until a step pulse * is sent. */ - qmp_discard_response("{'execute':'change', 'arguments':{" - " 'device':'floppy0', 'target': %s, 'arg': 'raw' }}", + qmp_discard_response("{'execute':'blockdev-change-medium', 'arguments':{" + " 'device':'floppy0', 'filename': %s, " + "'format': 'raw' }}", test_image); dir = inb(FLOPPY_BASE + reg_dir); -- 2.9.3