mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user