KVM test: use new monitor interface
- Add new monitor definition syntax that allows definition of multiple
monitors.
Monitors are now defined like other objects in the config file:
monitors = MyMonitor SomeOtherMonitor YetAnotherMonitor # defines 3 monitors
monitor_type = human # default for all monitors
monitor_type_SomeOtherMonitor = qmp # applies only to SomeOtherMonitor
monitor_type_YetAnotherMonitor = qmp # applies only to YetAnotherMonitor
main_monitor = MyMonitor # defines the main monitor to use
# in the test
- Use the new syntax in tests_base.cfg.sample.
- Establish monitor connections using kvm_monitor in VM.create().
Store all monitors in self.monitors. Store main monitor in
self.monitor.
- Replace calls to send_monitor_cmd() with appropriate calls to methods
of self.monitor (the main monitor).
- For now, ignore the parameter screendump_verbose because currently
monitor commands are always silent (when successful).
Changes from v2:
- Rebased against the latest upstream
- Corrected a few bugs left on tests
Changes from v1:
- Turn VM.monitor into a property
Signed-off-by: Michael Goldish <mgoldish@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4639 592f7852-d20e-0410-864c-8624ca9c26a4
17 files changed