@@ -936,9 +936,8 @@ public void TestDotnetVersionNotInstalled()
936936 {
937937 actions . RunProcess [ "dotnet --list-sdks" ] = 0 ;
938938 actions . RunProcessOut [ "dotnet --list-sdks" ] = "2.1.2 [C:\\ Program Files\\ dotnet\\ sdks]\n 2.1.4 [C:\\ Program Files\\ dotnet\\ sdks]" ;
939- actions . RunProcess [ @"chmod u+x dotnet-install.sh" ] = 0 ;
940- actions . RunProcess [ @"./dotnet-install.sh --channel release --version 2.1.3 --install-dir scratch/.dotnet" ] = 0 ;
941- actions . RunProcess [ @"rm dotnet-install.sh" ] = 0 ;
939+ actions . RunProcess [ @"chmod u+x scratch/.dotnet/dotnet-install.sh" ] = 0 ;
940+ actions . RunProcess [ @"scratch/.dotnet/dotnet-install.sh --channel release --version 2.1.3 --install-dir scratch/.dotnet" ] = 0 ;
942941 actions . RunProcess [ @"scratch/.dotnet/dotnet --info" ] = 0 ;
943942 actions . RunProcess [ @"scratch/.dotnet/dotnet clean C:\Project/test.csproj" ] = 0 ;
944943 actions . RunProcess [ @"scratch/.dotnet/dotnet restore C:\Project/test.csproj" ] = 0 ;
@@ -960,10 +959,11 @@ public void TestDotnetVersionNotInstalled()
960959
961960</Project>" ) ;
962961 actions . LoadXml [ @"C:\Project/test.csproj" ] = xml ;
963- actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "dotnet-install.sh" ) ) ;
962+ actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "scratch/.dotnet/dotnet-install.sh" ) ) ;
963+ actions . CreateDirectories . Add ( @"scratch/.dotnet" ) ;
964964
965965 var autobuilder = CreateAutoBuilder ( false , dotnetVersion : "2.1.3" ) ;
966- TestAutobuilderScript ( autobuilder , 0 , 8 ) ;
966+ TestAutobuilderScript ( autobuilder , 0 , 7 ) ;
967967 }
968968
969969 [ Fact ]
@@ -972,9 +972,8 @@ public void TestDotnetVersionAlreadyInstalled()
972972 actions . RunProcess [ "dotnet --list-sdks" ] = 0 ;
973973 actions . RunProcessOut [ "dotnet --list-sdks" ] = @"2.1.3 [C:\Program Files\dotnet\sdks]
9749742.1.4 [C:\Program Files\dotnet\sdks]" ;
975- actions . RunProcess [ @"chmod u+x dotnet-install.sh" ] = 0 ;
976- actions . RunProcess [ @"./dotnet-install.sh --channel release --version 2.1.3 --install-dir scratch/.dotnet" ] = 0 ;
977- actions . RunProcess [ @"rm dotnet-install.sh" ] = 0 ;
975+ actions . RunProcess [ @"chmod u+x scratch/.dotnet/dotnet-install.sh" ] = 0 ;
976+ actions . RunProcess [ @"scratch/.dotnet/dotnet-install.sh --channel release --version 2.1.3 --install-dir scratch/.dotnet" ] = 0 ;
978977 actions . RunProcess [ @"scratch/.dotnet/dotnet --info" ] = 0 ;
979978 actions . RunProcess [ @"scratch/.dotnet/dotnet clean C:\Project/test.csproj" ] = 0 ;
980979 actions . RunProcess [ @"scratch/.dotnet/dotnet restore C:\Project/test.csproj" ] = 0 ;
@@ -996,10 +995,11 @@ public void TestDotnetVersionAlreadyInstalled()
996995
997996</Project>" ) ;
998997 actions . LoadXml [ @"C:\Project/test.csproj" ] = xml ;
999- actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "dotnet-install.sh" ) ) ;
998+ actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "scratch/.dotnet/dotnet-install.sh" ) ) ;
999+ actions . CreateDirectories . Add ( @"scratch/.dotnet" ) ;
10001000
10011001 var autobuilder = CreateAutoBuilder ( false , dotnetVersion : "2.1.3" ) ;
1002- TestAutobuilderScript ( autobuilder , 0 , 8 ) ;
1002+ TestAutobuilderScript ( autobuilder , 0 , 7 ) ;
10031003 }
10041004
10051005 private void TestDotnetVersionWindows ( Action action , int commandsRun )
0 commit comments