[Helix] Don't fail fast on ef tool install issues (may be already installed) (#20958)

This commit is contained in:
Hao Kung 2020-04-18 01:58:02 -07:00 committed by GitHub
parent 812dfb97d3
commit 02bb671d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ namespace RunTests
$"tool install dotnet-ef --global --version {Options.EfVersion}",
environmentVariables: EnvironmentVariables,
outputDataReceived: Console.WriteLine,
errorDataReceived: Console.Error.WriteLine);
errorDataReceived: Console.Error.WriteLine,
throwOnError: false); // EF tool is sometimes already installed so we can ignore this failure
// ';' is the path separator on Windows, and ':' on Unix
Options.Path += RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ";" : ":";