@@ -558,8 +558,8 @@ public void TestVcVarsAllBatFiles()
558
558
[ Fact ]
559
559
public void TestLinuxBuildlessExtractionSuccess ( )
560
560
{
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 " ;
563
563
actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 0 ;
564
564
actions . FileExists [ "csharp.log" ] = true ;
565
565
actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -575,8 +575,8 @@ public void TestLinuxBuildlessExtractionSuccess()
575
575
[ Fact ]
576
576
public void TestLinuxBuildlessExtractionFailed ( )
577
577
{
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 " ;
580
580
actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 10 ;
581
581
actions . FileExists [ "csharp.log" ] = true ;
582
582
actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -592,8 +592,8 @@ public void TestLinuxBuildlessExtractionFailed()
592
592
[ Fact ]
593
593
public void TestLinuxBuildlessExtractionSolution ( )
594
594
{
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 " ;
597
597
actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 0 ;
598
598
actions . FileExists [ "csharp.log" ] = true ;
599
599
actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -609,8 +609,8 @@ public void TestLinuxBuildlessExtractionSolution()
609
609
[ Fact ]
610
610
public void TestLinuxBuildlessExtractionNoDotnet ( )
611
611
{
612
- actions . RunProcess [ "dotnet --info " ] = 1 ;
613
- actions . RunProcessOut [ "dotnet --info " ] = "" ;
612
+ actions . RunProcess [ "dotnet --list-sdks " ] = 1 ;
613
+ actions . RunProcessOut [ "dotnet --list-sdks " ] = "" ;
614
614
actions . RunProcess [ @"chmod u+x scratch/.dotnet/dotnet-install.sh" ] = 0 ;
615
615
actions . RunProcess [ @"scratch/.dotnet/dotnet-install.sh --channel release --version 8.0.101 --install-dir scratch/.dotnet" ] = 0 ;
616
616
actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone --dotnet scratch/.dotnet" ] = 0 ;
@@ -915,8 +915,8 @@ public void TestSkipNugetMsBuild()
915
915
[ Fact ]
916
916
public void TestSkipNugetBuildless ( )
917
917
{
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 " ;
920
920
actions . RunProcess [ @"C:\codeql\csharp/tools/linux64/Semmle.Extraction.CSharp.Standalone" ] = 0 ;
921
921
actions . FileExists [ "csharp.log" ] = true ;
922
922
actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
0 commit comments