www-servers/varnish: skip unreliable tests

Skip unreliable test t02014.vtc.

Replace previous methods for skipping tests with one that is easier to
maintain.

When skipping tests, we insert "feature cmd false" at the top of the vtc
test files so that the tests are correctly logged as SKIPped in the test
result summary.

Closes: https://bugs.gentoo.org/964041
Signed-off-by: Brett A C Sheffield <bacs@librecast.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/81
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Brett A C Sheffield
2026-02-19 15:13:17 +01:00
committed by Sam James
parent 77ebe4877f
commit 86e8809bb7

View File

@@ -43,10 +43,20 @@ DEPEND="
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
PATCHES=(
"${FILESDIR}/${PN}-7.1.2-disable-tests.patch"
"${FILESDIR}/${PN}-8.0.0-configure-make-python-output-match-autotools.patch" # Bug: 882725
)
# Upstream acknowledge that a small number of tests fail sporadically, including on their
# test boxes. We SKIP problematic tests here. Check https://vinyl-cache.org/vtest/
SKIP_TESTS=(
"u00021.vtc" # Commit: 83d9fbb2961c
"r02686.vtc" # Bug: 880627
"r02990.vtc" # Bug: 880627
"u00008.vtc" # Bug: 880627
"u00009.vtc" # Bug: 880627
"t02014.vtc" # Bug: 964041
)
src_prepare() {
default
@@ -55,6 +65,12 @@ src_prepare() {
python_setup
python_fix_shebang -q ${shebangs[*]}
# SKIP unreliable tests
local t
for t in ${SKIP_TESTS[*]}; do
sed -i -e '/^varnishtest.*$/a feature cmd false' bin/varnishtest/tests/${t} || die
done
# Remove -Werror bug #528354
sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac || die
@@ -77,13 +93,6 @@ src_configure() {
econf "${myeconfargs[@]}"
}
src_test() {
# Times out
rm bin/varnishtest/tests/u00021.vtc || die
default
}
src_install() {
emake DESTDIR="${D}" install