From 36e3e426889cfd441e695951a5ff1f37a33c1b94 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 21 Sep 2023 18:52:24 -0700 Subject: [PATCH] tests/int/update: use systemd_version() Signed-off-by: Kir Kolyshkin --- tests/integration/update.bats | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/update.bats b/tests/integration/update.bats index 616fe809b9c..4dd43bd8f7c 100644 --- a/tests/integration/update.bats +++ b/tests/integration/update.bats @@ -54,8 +54,7 @@ function setup() { fi SD_UNLIMITED="infinity" - SD_VERSION=$(systemctl --version | awk '{print $2; exit}') - if [ "$SD_VERSION" -lt 227 ]; then + if [ "$(systemd_version)" -lt 227 ]; then SD_UNLIMITED="18446744073709551615" fi