registry: skip integration testsuite directory during plugin scan

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>
This commit is contained in:
Doug Nazar 2021-04-19 10:49:42 -04:00 committed by Tim-Philipp Müller
parent 472dc4b743
commit 79020fa355

View 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/");