diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-06-12 11:43:49 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-06-12 11:46:39 +0200 |
commit | 8629d5a9fc153679289b85189f385af8348f4f25 (patch) | |
tree | ab7c8e8d13c89312c4755e5fe8cd68d11f2b6c50 /eclass/tests | |
parent | net-misc/openssh*: Fix sftp-server path in config drop-in (diff) | |
download | gentoo-8629d5a9fc153679289b85189f385af8348f4f25.tar.gz gentoo-8629d5a9fc153679289b85189f385af8348f4f25.tar.bz2 gentoo-8629d5a9fc153679289b85189f385af8348f4f25.zip |
eclass/tests: Override use() in linux-info_get_running_version.sh
linux-info.eclass checks for the kernel_linux flag since 2018,
introduced with commit 9e7c4b6d2daa9a8b1c33154f8dd296a2d1a26e92.
Closes: https://bugs.gentoo.org/934130
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/linux-info_get_running_version.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/tests/linux-info_get_running_version.sh b/eclass/tests/linux-info_get_running_version.sh index 57aaf2fedcd4..b8ae8c4b85ae 100755 --- a/eclass/tests/linux-info_get_running_version.sh +++ b/eclass/tests/linux-info_get_running_version.sh @@ -1,12 +1,20 @@ #!/bin/bash -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 source tests-common.sh || exit +source version-funcs.sh || exit inherit linux-info +use() { + case $1 in + kernel_linux) return 0 ;; + esac + die "${FUNCNAME[0]}: unknown flag" +} + test_get_running_version() { local test_kv=$1 major=$2 minor=$3 patch=$4 extra=$5 tbegin "get_running_version ${test_kv}" |