« Previous | Next » 

Revision 55e711aa

ID55e711aadd72af1c628e6d00ada28eaf554b3011
Parent f7b0366c
Child d5d86e20

Added by Apollon Oikonomopoulos almost 10 years ago

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