10000 VMR signing validation should fail when no files are processed (#330) · dotnet/dotnet@4b12d79 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b12d79

Browse files
authored
VMR signing validation should fail when no files are processed (#330)
1 parent e9d053e commit 4b12d79

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/SigningValidation.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ private void RunSignCheck()
217217
Log.LogError($"SignCheck failed with exit code {process.ExitCode}: {errorLogContent}");
218218
}
219219

220+
string stdoutLog = GetLogPath(_signCheckStdoutLogFileName);
221+
string stdoutLogContent = File.Exists(stdoutLog) ? File.ReadAllText(stdoutLog).Trim() : string.Empty;
222+
if (!string.IsNullOrWhiteSpace(stdoutLogContent) && stdoutLogContent.Contains("No files were processed"))
223+
{
224+
Log.LogError("SignCheck did not process any files.");
225+
}
226+
220227
Log.LogMessage(MessageImportance.High, $"SignCheck completed.");
221228
}
222229
}

0 commit comments

Comments
 (0)
0