Skip to content

Commit

Permalink
[1.1] tests/int: add "requires systemd_vNNN"
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <[email protected]>
(cherry picked from commit 58a811f)
Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Jul 8, 2023
1 parent 1188c5a commit ebdd4fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integration/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@ function requires() {
skip_me=1
fi
;;
systemd_v*)
var=${var#systemd_v}
if [ "$(systemd_version)" -lt "$var" ]; then
skip "requires systemd >= v${var}"
fi
;;
no_systemd)
if [ -n "${RUNC_USE_SYSTEMD}" ]; then
skip_me=1
Expand Down

0 comments on commit ebdd4fa

Please sign in to comment.