mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
validate: Fix marking expected issues as criticals
And never mark a repeat expected reports as repeated Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>
This commit is contained in:
parent
b23cb6236d
commit
02339bd8bb
2 changed files with 6 additions and 3 deletions
|
@ -218,7 +218,7 @@ gst_validate_report_valist (GstValidateReporter * reporter,
|
|||
prev_report = g_hash_table_lookup (priv->reports, (gconstpointer) issue_id);
|
||||
|
||||
runner = gst_validate_reporter_get_runner (reporter);
|
||||
if (prev_report) {
|
||||
if (prev_report && prev_report->level != GST_VALIDATE_REPORT_LEVEL_EXPECTED) {
|
||||
GstValidateReportingDetails reporter_level =
|
||||
gst_validate_reporter_get_reporting_level (reporter);
|
||||
GstValidateReportingDetails runner_level = GST_VALIDATE_SHOW_UNKNOWN;
|
||||
|
|
|
@ -688,8 +688,10 @@ gst_validate_runner_add_report (GstValidateRunner * runner,
|
|||
if (report->level == GST_VALIDATE_REPORT_LEVEL_IGNORE)
|
||||
return;
|
||||
|
||||
if (check_report_expected (runner, report))
|
||||
if (check_report_expected (runner, report)) {
|
||||
GST_INFO_OBJECT (runner, "Found expected issue: %p", report);
|
||||
report->level = GST_VALIDATE_REPORT_LEVEL_EXPECTED;
|
||||
}
|
||||
|
||||
gst_validate_send (json_boxed_serialize (GST_MINI_OBJECT_TYPE (report),
|
||||
report));
|
||||
|
@ -824,7 +826,8 @@ _do_report_synthesis (GstValidateRunner * runner)
|
|||
|
||||
if ((report->level == GST_VALIDATE_REPORT_LEVEL_CRITICAL) ||
|
||||
(report->issue->flags & GST_VALIDATE_ISSUE_FLAGS_FULL_DETAILS)) {
|
||||
criticals = g_list_append (criticals, report);
|
||||
if (report->level == GST_VALIDATE_REPORT_LEVEL_CRITICAL)
|
||||
criticals = g_list_append (criticals, report);
|
||||
gst_validate_report_print_details (report);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue