commit:     ff126ea05e326d64ac62b777fe92484511b1ab9c
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sun Sep 21 02:56:16 2025 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Wed Jan 14 11:33:09 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff126ea0

media-libs/gst-plugins-good: skip known flaky test

Bug: https://bugs.gentoo.org/930448
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 .../gst-plugins-good-1.24.13.ebuild                | 34 +++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/media-libs/gst-plugins-good/gst-plugins-good-1.24.13.ebuild 
b/media-libs/gst-plugins-good/gst-plugins-good-1.24.13.ebuild
index 9e969b381149..0940d88d6891 100644
--- a/media-libs/gst-plugins-good/gst-plugins-good-1.24.13.ebuild
+++ b/media-libs/gst-plugins-good/gst-plugins-good-1.24.13.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 GST_ORG_MODULE="gst-plugins-good"
 
-inherit gstreamer-meson
+inherit gstreamer-meson virtualx
 
 DESCRIPTION="Basepack of plugins for GStreamer"
 HOMEPAGE="https://gstreamer.freedesktop.org/";
@@ -35,3 +35,35 @@ multilib_src_configure() {
 
        gstreamer_multilib_src_configure
 }
+
+multilib_src_test() {
+       # Homebrew test skips for meson
+       local -a tests
+       tests=( $(meson test --list -C "${BUILD_DIR}") )
+
+       local -a _skip_tests=(
+               # known flaky test bug #930448
+               # 
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2803
+               elements_flvmux
+       )
+
+       # Add suites which in this case are the project name
+       if has_version ">=dev-build/meson-1.10.0"; then
+               local -a skip_tests=()
+               for skip_test in ${_skip_tests[@]}; do
+                       skip_tests+=( "${PN}:${skip_test}" )
+               done
+       else
+               local -a skip_tests=( ${_skip_tests[@]} )
+       fi
+       unset _skip_tests
+
+       for test_index in ${!tests[@]}; do
+               if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
+                       unset tests[${test_index}]
+               fi
+       done
+
+       # gstreamer_multilib_src_test doesn't pass arguments
+       GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 
${tests[@]}
+}

Reply via email to