« Previous | Next » 

Revision 13bb1b4c

ID13bb1b4c2ef271bd53cb5223fc016646d6b0375c
Parent 546cdf7a
Child 6dd47a8c

Added by Apollon Oikonomopoulos over 9 years ago

(2.12) 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 <>
Signed-off-by: Thomas Thrainer <>
Reviewed-by: Thomas Thrainer <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences