mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Fix tests.
This commit is contained in:
parent
97c68f56bf
commit
8baa480b79
@ -89,6 +89,7 @@ class DockerVM(BaseNode):
|
||||
self._console_http_port = console_http_port
|
||||
self._console_websocket = None
|
||||
self._extra_hosts = extra_hosts
|
||||
self._display = None
|
||||
self._closing = False
|
||||
|
||||
self._volumes = []
|
||||
@ -757,15 +758,14 @@ class DockerVM(BaseNode):
|
||||
yield from self._x11vnc_process.wait()
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
self._x11vnc_process = None
|
||||
if self._xvfb_process:
|
||||
try:
|
||||
self._xvfb_process.terminate()
|
||||
yield from self._xvfb_process.wait()
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
self._xvfb_process = None
|
||||
|
||||
if self._display:
|
||||
display = "/tmp/.X11-unix/X{}".format(self._display)
|
||||
try:
|
||||
if os.path.exists(display):
|
||||
|
Loading…
Reference in New Issue
Block a user