diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-28 23:35:10 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:18:54 -0400 |
commit | 7e18c2f4c0cdeb99a807b2f1e8b94f6af99a29c0 (patch) | |
tree | 4f69b93ff0b1b3302f481cff05947242a7903cb6 | |
parent | c232797f8f37be1c630e533fc7cd06a10604a647 (diff) |
[bug] assert vpn management folder exists
-rw-r--r-- | src/leap/bitmask/vpn/process.py | 2 | ||||
-rw-r--r-- | tests/functional/features/environment.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/process.py b/src/leap/bitmask/vpn/process.py index a2b384e..d35857c 100644 --- a/src/leap/bitmask/vpn/process.py +++ b/src/leap/bitmask/vpn/process.py @@ -90,6 +90,8 @@ class _VPNProcess(protocol.ProcessProtocol): self._port = socket_port if socket_port == 'unix': + folder = os.path.split(self._host)[0] + assert os.path.isfile(folder) self._management_endpoint = clientFromString( reactor, b"unix:path=%s" % socket_host) else: diff --git a/tests/functional/features/environment.py b/tests/functional/features/environment.py index c92a39d..be7404c 100644 --- a/tests/functional/features/environment.py +++ b/tests/functional/features/environment.py @@ -108,7 +108,7 @@ def _save_config(context, step): shutil.copytree(get_path_prefix(), filepath) except OSError: pass - print('copied config to: file://%s' % filepath) + print('copied config folder to: file://%s' % filepath) def _artifact_path(step, filename=''): |