Fix the Greeting message - package is an attribute of version, not QMP.

At this stage, we can connect to a QEMU server and issue commands and queries.
This commit is contained in:
Nick Thomas
2011-11-13 19:50:13 +00:00
parent ce41993a1b
commit d96239dd65
2 changed files with 14 additions and 20 deletions

View File

@@ -12,16 +12,16 @@ module TestQMPClient
COMMAND_TXT = COMMAND_HSH.to_json
GREETING_MSG = Messages::Greeting.new(
{'qemu' => {'micro' => 50, 'minor' => 13, 'major' => 0}},
{'qemu' => {'micro' => 50, 'minor' => 13, 'major' => 0}, 'package' => ''},
"", []
)
GREETING_HSH = {
'QMP' => {
'version' => {'qemu' => {'micro' => 50, 'minor' => 13, 'major' => 0}},
'package' => "",
GREETING_HSH = { 'QMP' => {
'version' => {
'qemu' => {'micro' => 50, 'minor' => 13, 'major' => 0},
'package' => ''
},
'capabilities' => []
}
}}
GREETING_TXT = GREETING_HSH.to_json
ETIME = Time.now