commit:     7468ff1ec9a742bd145838b30c7188597af02d93
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sun Sep 21 02:46:04 2025 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Wed Jan 14 11:33:08 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7468ff1e

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

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

 .../gst-plugins-bad/gst-plugins-bad-1.24.13.ebuild | 33 ++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

diff --git a/media-libs/gst-plugins-bad/gst-plugins-bad-1.24.13.ebuild 
b/media-libs/gst-plugins-bad/gst-plugins-bad-1.24.13.ebuild
index 0bca06360f51..ca29af966cd9 100644
--- a/media-libs/gst-plugins-bad/gst-plugins-bad-1.24.13.ebuild
+++ b/media-libs/gst-plugins-bad/gst-plugins-bad-1.24.13.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 GST_ORG_MODULE="gst-plugins-bad"
-inherit gstreamer-meson
+inherit gstreamer-meson virtualx
 
 DESCRIPTION="Less plugins for GStreamer"
 HOMEPAGE="https://gstreamer.freedesktop.org/";
@@ -75,6 +75,35 @@ 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 #931737
+               elements_netsim
+       )
+
+       # Add suites which in this case are PN
+       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
+
        # Tests are slower than upstream expects
-       CK_DEFAULT_TIMEOUT=300 gstreamer_multilib_src_test
+       local -x CK_DEFAULT_TIMEOUT=300
+
+       # gstreamer_multilib_src_test doesn't pass arguments
+       GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 
${tests[@]}
 }

Reply via email to