diff options
author | Luca Boccassi <bluca@debian.org> | 2024-04-25 13:43:18 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2024-04-25 14:32:10 +0200 |
commit | c790537b898e3f82ff08900b755701432b0b5d27 (patch) | |
tree | 3b2b2b5c1839db7e9c535558603af8924b96abb2 /test/units/testsuite-62.sh | |
parent | run/run: fix invocation ID handling (diff) | |
download | systemd-c790537b898e3f82ff08900b755701432b0b5d27.tar.xz systemd-c790537b898e3f82ff08900b755701432b0b5d27.zip |
test: use sd-analyze for kernel version check in TEST-62
Diffstat (limited to 'test/units/testsuite-62.sh')
-rwxr-xr-x | test/units/testsuite-62.sh | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/units/testsuite-62.sh b/test/units/testsuite-62.sh index 84c92247b8..1fbb3cb1c2 100755 --- a/test/units/testsuite-62.sh +++ b/test/units/testsuite-62.sh @@ -34,15 +34,7 @@ teardown() { systemd-analyze log-level info } -KERNEL_VERSION="$(uname -r)" -KERNEL_MAJOR="${KERNEL_VERSION%%.*}" -KERNEL_MINOR="${KERNEL_VERSION#"$KERNEL_MAJOR".}" -KERNEL_MINOR="${KERNEL_MINOR%%.*}" - -MAJOR_REQUIRED=5 -MINOR_REQUIRED=7 - -if [[ "$KERNEL_MAJOR" -lt $MAJOR_REQUIRED || ("$KERNEL_MAJOR" -eq $MAJOR_REQUIRED && "$KERNEL_MINOR" -lt $MINOR_REQUIRED) ]]; then +if systemd-analyze compare-versions "$(uname -r)" lt 5.7; then echo "kernel is not 5.7+" >>/skipped exit 77 fi |