Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/dotnet.Tests/CommandTests/Run/RunFileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ public static IEnumerable<string> GetPathsOfCscInputsFromNuGetCache()
{
Log.WriteLine($"{codeFilePath.FullName} needs to be updated:");
Log.WriteLine(newText);
if (Environment.GetEnvironmentVariable("CI") == "true")
if (Env.GetEnvironmentVariableAsBool("CI"))
{
throw new InvalidOperationException($"Not updating file in CI: {codeFilePath.FullName}");
}
Expand Down Expand Up @@ -2217,7 +2217,7 @@ Hello from {programName}
var msbuildFileText = File.ReadAllText(msbuildFile);
if (cscOnlyFileText.ReplaceLineEndings() != msbuildFileText.ReplaceLineEndings())
{
Log.WriteLine($"File differs between MSBuild and CSC-only runs: {cscOnlyFile}");
Log.WriteLine($"File differs between MSBuild and CSC-only runs (if this is expected, find the template in '{nameof(CSharpCompilerCommand)}.cs' and update it): {cscOnlyFile}");
const int limit = 3_000;
if (cscOnlyFileText.Length < limit && msbuildFileText.Length < limit)
{
Expand Down