@@ -558,8 +558,8 @@ public void TestVcVarsAllBatFiles()
558558 [ Fact ]
559559 public void TestLinuxBuildlessExtractionSuccess ( )
560560 {
561- actions . RunProcess [ "dotnet --info " ] = 0 ;
562- actions . RunProcessOut [ "dotnet --info " ] = "" ;
561+ actions . RunProcess [ "dotnet --list-sdks " ] = 0 ;
562+ actions . RunProcessOut [ "dotnet --list-sdks " ] = "any version " ;
563563 actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 0 ;
564564 actions . FileExists [ "csharp.log" ] = true ;
565565 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -575,8 +575,8 @@ public void TestLinuxBuildlessExtractionSuccess()
575575 [ Fact ]
576576 public void TestLinuxBuildlessExtractionFailed ( )
577577 {
578- actions . RunProcess [ "dotnet --info " ] = 0 ;
579- actions . RunProcessOut [ "dotnet --info " ] = "" ;
578+ actions . RunProcess [ "dotnet --list-sdks " ] = 0 ;
579+ actions . RunProcessOut [ "dotnet --list-sdks " ] = "any version " ;
580580 actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 10 ;
581581 actions . FileExists [ "csharp.log" ] = true ;
582582 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -592,8 +592,8 @@ public void TestLinuxBuildlessExtractionFailed()
592592 [ Fact ]
593593 public void TestLinuxBuildlessExtractionSolution ( )
594594 {
595- actions . RunProcess [ "dotnet --info " ] = 0 ;
596- actions . RunProcessOut [ "dotnet --info " ] = "" ;
595+ actions . RunProcess [ "dotnet --list-sdks " ] = 0 ;
596+ actions . RunProcessOut [ "dotnet --list-sdks " ] = "any version " ;
597597 actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 0 ;
598598 actions . FileExists [ "csharp.log" ] = true ;
599599 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -609,8 +609,8 @@ public void TestLinuxBuildlessExtractionSolution()
609609 [ Fact ]
610610 public void TestLinuxBuildlessExtractionNoDotnet ( )
611611 {
612- actions . RunProcess [ "dotnet --info " ] = 1 ;
613- actions . RunProcessOut [ "dotnet --info " ] = "" ;
612+ actions . RunProcess [ "dotnet --list-sdks " ] = 1 ;
613+ actions . RunProcessOut [ "dotnet --list-sdks " ] = "" ;
614614 actions . RunProcess [ @"chmod u+x scratch/.dotnet/dotnet-install.sh" ] = 0 ;
615615 actions . RunProcess [ @"scratch/.dotnet/dotnet-install.sh --channel release --version 8.0.101 --install-dir scratch/.dotnet" ] = 0 ;
616616 actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone --dotnet scratch/.dotnet" ] = 0 ;
@@ -915,8 +915,8 @@ public void TestSkipNugetMsBuild()
915915 [ Fact ]
916916 public void TestSkipNugetBuildless ( )
917917 {
918- actions . RunProcess [ "dotnet --info " ] = 0 ;
919- actions . RunProcessOut [ "dotnet --info " ] = "" ;
918+ actions . RunProcess [ "dotnet --list-sdks " ] = 0 ;
919+ actions . RunProcessOut [ "dotnet --list-sdks " ] = "any version " ;
920920 actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 0 ;
921921 actions . FileExists [ "csharp.log" ] = true ;
922922 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
0 commit comments