Skip to content

Commit

Permalink
tests/int/update: use systemd_version()
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin authored and lifubang committed Oct 20, 2023
1 parent 5cfd6e8 commit 36e3e42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/update.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 36e3e42

Please sign in to comment.