1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix tests.

This commit is contained in:
grossmj 2018-10-06 21:57:03 +08:00
parent 97c68f56bf
commit 8baa480b79

View File

@ -89,6 +89,7 @@ class DockerVM(BaseNode):
self._console_http_port = console_http_port self._console_http_port = console_http_port
self._console_websocket = None self._console_websocket = None
self._extra_hosts = extra_hosts self._extra_hosts = extra_hosts
self._display = None
self._closing = False self._closing = False
self._volumes = [] self._volumes = []
@ -757,15 +758,14 @@ class DockerVM(BaseNode):
yield from self._x11vnc_process.wait() yield from self._x11vnc_process.wait()
except ProcessLookupError: except ProcessLookupError:
pass pass
self._x11vnc_process = None
if self._xvfb_process: if self._xvfb_process:
try: try:
self._xvfb_process.terminate() self._xvfb_process.terminate()
yield from self._xvfb_process.wait() yield from self._xvfb_process.wait()
except ProcessLookupError: except ProcessLookupError:
pass pass
self._xvfb_process = None
if self._display:
display = "/tmp/.X11-unix/X{}".format(self._display) display = "/tmp/.X11-unix/X{}".format(self._display)
try: try:
if os.path.exists(display): if os.path.exists(display):