diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-01-08 04:25:25 +0100 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-01-08 04:29:20 +0100 |
commit | 5a6c0f08504c12d79a64780c0182eee72635ca2e (patch) | |
tree | 921256e6e0f34ac2f48e3997cbb280ddc1642980 /testsuite | |
parent | d7c86ee06811bacfe70fa37759dd97f783454af6 (diff) | |
download | ghdl-5a6c0f08504c12d79a64780c0182eee72635ca2e.tar.gz ghdl-5a6c0f08504c12d79a64780c0182eee72635ca2e.tar.bz2 ghdl-5a6c0f08504c12d79a64780c0182eee72635ca2e.zip |
testuite/pyunit: call pyGHDL.cli.lsp instead of ghdl-ls
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/pyunit/lsp/LanguageServer.py | 4 |
1 files 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 ) |