media-libs/gstreamer: skip flaky test

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/527
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-05-08 18:01:55 +01:00
committed by Sam James
parent 363a81dd68
commit eeb2c07c9d
+32 -1
View File
@@ -5,7 +5,7 @@ EAPI=8
RUST_OPTIONAL=1
RUST_MIN_VER=1.48
inherit gstreamer-meson rust
inherit gstreamer-meson rust virtualx
DESCRIPTION="Open source multimedia framework"
HOMEPAGE="https://gstreamer.freedesktop.org/"
@@ -70,3 +70,34 @@ 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=(
# flaky
gst_gstbin
)
# 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
# gstreamer_multilib_src_test doesn't pass arguments
GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 ${tests[@]}
}