зеркало из https://github.com/dotnet/razor.git
Skip first run experience locally and on azure pipelines.
- This would cause our functional tests to time out and occasionally crash due to dotnet first run experience sentinels being locked. aspnet/AspNetCore-Internal#1859
This commit is contained in:
Родитель
eff7b22f1c
Коммит
2668a0e8a9
|
@ -3,6 +3,8 @@ variables:
|
|||
value: true
|
||||
- name: _TeamName
|
||||
value: AspNetCore
|
||||
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
|
||||
value: true
|
||||
|
||||
resources:
|
||||
containers:
|
||||
|
|
|
@ -41,6 +41,10 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
{
|
||||
processStartInfo.FileName = DotNetMuxer.MuxerPathOrDefault();
|
||||
processStartInfo.Arguments = $"msbuild {arguments}";
|
||||
|
||||
// Suppresses the 'Welcome to .NET Core!' output that times out tests and causes locked file issues.
|
||||
// When using dotnet we're not guarunteed to run in an environment where the dotnet.exe has had its first run experience already invoked.
|
||||
processStartInfo.EnvironmentVariables["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "true";
|
||||
}
|
||||
|
||||
var processResult = await RunProcessCoreAsync(processStartInfo, timeout);
|
||||
|
|
Загрузка…
Ссылка в новой задаче