@@ -936,9 +936,9 @@ public void TestDotnetVersionNotInstalled()
936
936
{
937
937
actions . RunProcess [ "dotnet --list-sdks" ] = 0 ;
938
938
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 ;
941
+ actions . RunProcess [ @"rm scratch/.dotnet/ dotnet-install.sh" ] = 0 ;
942
942
actions . RunProcess [ @"scratch/.dotnet/dotnet --info" ] = 0 ;
943
943
actions . RunProcess [ @"scratch/.dotnet/dotnet clean C:\Project/test.csproj" ] = 0 ;
944
944
actions . RunProcess [ @"scratch/.dotnet/dotnet restore C:\Project/test.csproj" ] = 0 ;
@@ -960,7 +960,8 @@ public void TestDotnetVersionNotInstalled()
960
960
961
961
</Project>" ) ;
962
962
actions . LoadXml [ @"C:\Project/test.csproj" ] = xml ;
963
- actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "dotnet-install.sh" ) ) ;
963
+ actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "scratch/.dotnet/dotnet-install.sh" ) ) ;
964
+ actions . CreateDirectories . Add ( @"scratch/.dotnet" ) ;
964
965
965
966
var autobuilder = CreateAutoBuilder ( false , dotnetVersion : "2.1.3" ) ;
966
967
TestAutobuilderScript ( autobuilder , 0 , 8 ) ;
@@ -972,9 +973,9 @@ public void TestDotnetVersionAlreadyInstalled()
972
973
actions . RunProcess [ "dotnet --list-sdks" ] = 0 ;
973
974
actions . RunProcessOut [ "dotnet --list-sdks" ] = @"2.1.3 [C:\Program Files\dotnet\sdks]
974
975
2.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 ;
976
+ actions . RunProcess [ @"chmod u+x scratch/.dotnet/ dotnet-install.sh" ] = 0 ;
977
+ actions . RunProcess [ @"scratch/.dotnet /dotnet-install.sh --channel release --version 2.1.3 --install-dir scratch/.dotnet" ] = 0 ;
978
+ actions . RunProcess [ @"rm scratch/.dotnet/ dotnet-install.sh" ] = 0 ;
978
979
actions . RunProcess [ @"scratch/.dotnet/dotnet --info" ] = 0 ;
979
980
actions . RunProcess [ @"scratch/.dotnet/dotnet clean C:\Project/test.csproj" ] = 0 ;
980
981
actions . RunProcess [ @"scratch/.dotnet/dotnet restore C:\Project/test.csproj" ] = 0 ;
@@ -996,7 +997,8 @@ public void TestDotnetVersionAlreadyInstalled()
996
997
997
998
</Project>" ) ;
998
999
actions . LoadXml [ @"C:\Project/test.csproj" ] = xml ;
999
- actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "dotnet-install.sh" ) ) ;
1000
+ actions . DownloadFiles . Add ( ( "https://dot.net/v1/dotnet-install.sh" , "scratch/.dotnet/dotnet-install.sh" ) ) ;
1001
+ actions . CreateDirectories . Add ( @"scratch/.dotnet" ) ;
1000
1002
1001
1003
var autobuilder = CreateAutoBuilder ( false , dotnetVersion : "2.1.3" ) ;
1002
1004
TestAutobuilderScript ( autobuilder , 0 , 8 ) ;
0 commit comments