Revision 55e711aa
ID | 55e711aadd72af1c628e6d00ada28eaf554b3011 |
Parent | f7b0366c |
Child | d5d86e20 |
QMP: make QmpConnection act as a context manager
This will allow automatic connection and socket cleanup on command
completion.
We also repeat the Qmp tests using the context manager. For this to be
feasible, we move the test scenario to class variables and modify
QmpStub to not consume its script.
Signed-off-by: Apollon Oikonomopoulos <apoikos@gmail.com>
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
Files
- added
- modified
- copied
- renamed
- deleted