tests/extra: add start_guid option to VMWrapper

Pass start_guid option to vm.start(), when using core2 compatibility
layer.
This commit is contained in:
Marek Marczykowski-Górecki 2018-04-13 21:43:15 +02:00
parent 6a191febc3
commit 69f19bb7bb
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -65,8 +65,9 @@ class VMWrapper(object):
def __hash__(self):
return hash(self._vm)
def start(self):
return self._loop.run_until_complete(self._vm.start())
def start(self, start_guid=True):
return self._loop.run_until_complete(
self._vm.start(start_guid=start_guid))
def shutdown(self):
return self._loop.run_until_complete(self._vm.shutdown())