diff --git a/testsuite/ada_lsp/config_file/test.py b/testsuite/ada_lsp/config_file/test.py index a2934813..ed00acc8 100644 --- a/testsuite/ada_lsp/config_file/test.py +++ b/testsuite/ada_lsp/config_file/test.py @@ -3,7 +3,6 @@ configurationFile configuration option and have proper navigation """ -import e3 import subprocess from drivers.pylsp import ( ALSLanguageClient, @@ -19,13 +18,9 @@ Location, ) -if "windows" in e3.env.Env().build.platform: - runtime = "light" -else: - runtime = "sjlj" -# create default.cgpr configuration file that will use not-native runtime -subprocess.check_call(["gprconfig", "--batch", "--config=Ada,," + runtime + ",,GNAT"]) +# create default.cgpr configuration file that will use not-default runtime +subprocess.check_call(["gprconfig", "--batch", "--config=Ada,,light,,GNAT"]) @test() @@ -48,7 +43,7 @@ async def do_testing(lsp: ALSLanguageClient) -> None: # Check result assert result assert isinstance(result, Location) - assertEqual(runtime in result.uri, True) + assertEqual("light" in result.uri, True) # Check relative to root paths lsp.didChangeConfig( @@ -68,4 +63,4 @@ async def do_testing(lsp: ALSLanguageClient) -> None: # Check result assert result assert isinstance(result, Location) - assertEqual(runtime in result.uri, True) + assertEqual("light" in result.uri, True)