summaryrefslogtreecommitdiffhomepage
path: root/test/scripts
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2024-08-26 21:40:30 +0200
committerDavid Lönnhager <david.l@mullvad.net>2024-08-29 14:38:32 +0200
commit31637ab8b58a7e1ab00acdf32d5ee5ddbd08c458 (patch)
tree88971e2ce7e8cf0f5dc4d07f19eb17af6e04e10f /test/scripts
parentf1d9dd3bf9dab8bd9e08daac7f36980b3c332dfb (diff)
downloadmullvadvpn-31637ab8b58a7e1ab00acdf32d5ee5ddbd08c458.tar.xz
mullvadvpn-31637ab8b58a7e1ab00acdf32d5ee5ddbd08c458.zip
Fix test_split_tunnel
Raw ICMP isn't allowed on all platforms for unprivileged users. Instead: * Use SOCK_DGRAM, where possible * Use 'ping' command, since SOCK_DGRAM isn't allowed on some older Linux distros.
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/ssh-setup.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/scripts/ssh-setup.sh b/test/scripts/ssh-setup.sh
index 5ac5dea15e..0bbea4f0b9 100644
--- a/test/scripts/ssh-setup.sh
+++ b/test/scripts/ssh-setup.sh
@@ -128,6 +128,9 @@ function install_packages_apt {
echo "Installing required apt packages"
apt update
apt install -yf xvfb wireguard-tools curl
+ if ! which ping &>/dev/null; then
+ apt install -yf iputils-ping
+ fi
curl -fsSL https://get.docker.com | sh
}