Skip to content

Commit

Permalink
tests: ipsec: Fix detection of libreswan 3.
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
igsilya committed Oct 24, 2024
1 parent 3570205 commit c70506f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system-ipsec.at
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ m4_for([id], [1], NODES, [1], [
])

auto=
if ipsec --version | grep -q 'Libreswan 4'; then
if test $(ipsec --version | sed 's/.*Libreswan \([[0-9]]*\).*/\1/') -lt 5; then
auto=auto
fi

Expand Down

0 comments on commit c70506f

Please sign in to comment.