diff --git a/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs b/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs index 809dc83780f7..772db534eb19 100644 --- a/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs +++ b/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs @@ -2090,7 +2090,7 @@ public static IEnumerable 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}"); } @@ -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) {