net-misc/kea: fix tests fail to run

With update to using meson v1.10, the output format from the
meson test --list command has changed that caused the tests to
fail to run due to a parsing error.

Bug: https://bugs.gentoo.org/968667
Signed-off-by: Peter Leese <inbox@peterleese.org>
Part-of: https://github.com/gentoo/gentoo/pull/45455
Closes: https://github.com/gentoo/gentoo/pull/45455
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Peter Leese
2026-01-20 07:53:36 +00:00
committed by Sam James
parent 8f4faa115b
commit 6d8a7e849a
2 changed files with 16 additions and 6 deletions
+8 -3
View File
@@ -163,13 +163,18 @@ src_test() {
# Get list of all test suites into an associative array
# the meson test --list returns either "kea / test_suite", "kea:shell-tests / test_suite" or
# "kea:python-tests / test_suite"
# Note: In meson >= 1.10 the format has changed to
# the meson test --list returns either "kea:test_suite", "shell-tests - kea:test_suite" or
# "python-tests - kea:test_suite"
#
# Discard the shell tests as we can't run shell tests in sandbox
pushd "${BUILD_DIR}" || die
local -A TEST_SUITES
while IFS=" / " read -r subsystem test_suite ; do
if [[ ${subsystem} != "kea:shell-tests" ]]; then
TEST_SUITES["$test_suite"]=1
while IFS="/: " read -a words ; do
if [[ "${words[0]}" != "shell-tests" ]] && [[ "${words[2]}" != "shell-tests" ]]; then
TEST_SUITES["${words[-1]}"]=1
fi
done < <(meson test --list || die)
popd
+8 -3
View File
@@ -160,13 +160,18 @@ src_test() {
# Get list of all test suites into an associative array
# the meson test --list returns either "kea / test_suite", "kea:shell-tests / test_suite" or
# "kea:python-tests / test_suite"
# Note: In meson >= 1.10 the format has changed to
# the meson test --list returns either "kea:test_suite", "shell-tests - kea:test_suite" or
# "python-tests - kea:test_suite"
#
# Discard the shell tests as we can't run shell tests in sandbox
pushd "${BUILD_DIR}" || die
local -A TEST_SUITES
while IFS=" / " read -r subsystem test_suite ; do
if [[ ${subsystem} != "kea:shell-tests" ]]; then
TEST_SUITES["$test_suite"]=1
while IFS="/: " read -a words ; do
if [[ "${words[0]}" != "shell-tests" ]] && [[ "${words[2]}" != "shell-tests" ]]; then
TEST_SUITES["${words[-1]}"]=1
fi
done < <(meson test --list || die)
popd