From 5a6c0f08504c12d79a64780c0182eee72635ca2e Mon Sep 17 00:00:00 2001 From: umarcor Date: Fri, 8 Jan 2021 04:25:25 +0100 Subject: testuite/pyunit: call pyGHDL.cli.lsp instead of ghdl-ls --- testsuite/pyunit/lsp/LanguageServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/pyunit/lsp/LanguageServer.py b/testsuite/pyunit/lsp/LanguageServer.py index cb5609125..5abfe2948 100644 --- a/testsuite/pyunit/lsp/LanguageServer.py +++ b/testsuite/pyunit/lsp/LanguageServer.py @@ -1,6 +1,7 @@ from io import BytesIO from json import load as json_load, loads as json_loads, dumps as json_dumps from os import environ +from sys import executable from pathlib import Path from subprocess import run as subprocess_run, PIPE from typing import Optional @@ -52,7 +53,6 @@ def show_diffs(name, ref, res): class JSONTest(TestCase): _LSPTestDirectory = Path(__file__).parent.resolve() - __GHDLLSExecutable = environ.get('GHDLLS', 'ghdl-ls') def _RequestResponse(self, requestFile: Path, responseFile: Optional[Path] = None): # Convert the JSON input file to an LSP string. @@ -66,7 +66,7 @@ class JSONTest(TestCase): # Run p = subprocess_run( - [self.__GHDLLSExecutable], + [executable, '-m', 'pyGHDL.cli.lsp'], input=conn.res.encode('utf-8'), stdout=PIPE ) -- cgit v1.2.3