From e5dc7872ce55255a2877c8a400135fe2b7876fde Mon Sep 17 00:00:00 2001 From: Noah McGregor Harper <74685766+nharper285@users.noreply.github.com> Date: Tue, 7 Mar 2023 18:13:30 +0000 Subject: [PATCH] Add additional filter check for reports and regressions (#2911) * Add additional filter check for reports and regressions. * Change comparator option. --- src/ApiService/ApiService/onefuzzlib/Reports.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiService/ApiService/onefuzzlib/Reports.cs b/src/ApiService/ApiService/onefuzzlib/Reports.cs index 1a24106119..dd0f7e741e 100644 --- a/src/ApiService/ApiService/onefuzzlib/Reports.cs +++ b/src/ApiService/ApiService/onefuzzlib/Reports.cs @@ -28,9 +28,9 @@ public Reports(ILogTracer log, IContainers containers) { public async Async.Task GetReportOrRegression(Container container, string fileName, bool expectReports = false, params string[] args) { var filePath = string.Join("/", new[] { container.String, fileName }); - if (!fileName.EndsWith(".json", StringComparison.Ordinal)) { + if (!fileName.EndsWith(".json", StringComparison.Ordinal) || fileName.Contains("source-coverage", StringComparison.InvariantCultureIgnoreCase)) { if (expectReports) { - _log.Error($"get_report invalid extension: {filePath:Tag:FilePath}"); + _log.Error($"get_report invalid extension or filename: {filePath:Tag:FilePath}"); } return null; }