aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-10-02 16:51:33 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-10-04 19:28:13 +0100
commite319df669da92f6ba56595e486637108256da08f (patch)
tree5987234e2c0eb952c5eae0e42bfd897db62c9770 /tests
parentd0e386683779f09afe5bf198b957a780c960204b (diff)
blockdev-test: Clean up bogus drive_add argument
The first argument should be a PCI address, which pci-addr=auto isn't. Doesn't really matter, as drive_add ignores its first argument when its second argument has if=none. Clean it up anyway. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1412261496-24455-4-git-send-email-armbru@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/drive_del-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/drive_del-test.c b/tests/drive_del-test.c
index a5de2395d6..32516a251c 100644
--- a/tests/drive_del-test.c
+++ b/tests/drive_del-test.c
@@ -83,7 +83,7 @@ static void test_after_failed_device_add(void)
*/
response = qmp("{'execute': 'human-monitor-command',"
" 'arguments': {"
- " 'command-line': 'drive_add pci-addr=auto if=none,id=drive0'"
+ " 'command-line': 'drive_add 0 if=none,id=drive0'"
"}}");
g_assert(response);
g_assert_cmpstr(qdict_get_try_str(response, "return"), ==, "OK\r\n");