diff --git a/net-misc/kea/kea-3.0.2-r1.ebuild b/net-misc/kea/kea-3.0.2-r1.ebuild index ec1107fe6d4ae..223e63ef41706 100644 --- a/net-misc/kea/kea-3.0.2-r1.ebuild +++ b/net-misc/kea/kea-3.0.2-r1.ebuild @@ -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 diff --git a/net-misc/kea/kea-9999.ebuild b/net-misc/kea/kea-9999.ebuild index 954594c025d00..c487f11ec6f61 100644 --- a/net-misc/kea/kea-9999.ebuild +++ b/net-misc/kea/kea-9999.ebuild @@ -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