mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-19 07:53:47 +02:00
Fix tests.
This commit is contained in:
parent
4ddd45f788
commit
8536af33da
@ -19,6 +19,7 @@
|
||||
Docker container instance.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import asyncio
|
||||
import shutil
|
||||
import psutil
|
||||
@ -616,6 +617,7 @@ class DockerVM(BaseNode):
|
||||
x11_socket = os.path.join("/tmp/.X11-unix/", "X{}".format(self._display))
|
||||
await wait_for_file_creation(x11_socket)
|
||||
|
||||
if not hasattr(sys, "_called_from_test") or not sys._called_from_test:
|
||||
# Start vncconfig for tigervnc clipboard support, connection available only after socket creation.
|
||||
tigervncconfig_path = shutil.which("vncconfig")
|
||||
if tigervnc_path and tigervncconfig_path:
|
||||
|
Loading…
Reference in New Issue
Block a user