registry: skip integration testsuite directory during plugin scan
authorDoug Nazar <nazard@nazar.ca>
Mon, 19 Apr 2021 14:49:42 +0000 (10:49 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 12 Sep 2022 17:52:51 +0000 (18:52 +0100)
When using an uninstalled development environment and running the
validation tests, the number of log files can grow substantially,
slowing down startup.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/799>

subprojects/gstreamer/gst/gstregistry.c

index daa5e72..3e8faed 100644 (file)
@@ -1222,6 +1222,10 @@ skip_directory (const gchar * parent_path, const gchar * dirent)
   if (g_str_has_prefix (dirent, "hotdoc-private-"))
     return TRUE;
 
+  /* gst-integration-testsuites can end up with many log files */
+  if (strcmp (dirent, "gst-integration-testsuites") == 0)
+    return TRUE;
+
   /* Rust build dirs which may contain artefacts we should skip, can be
    * /target/{debug,release} or /target/{arch}/{debug,release} */
   target = strstr (parent_path, "/target/");