summaryrefslogtreecommitdiffhomepage
path: root/test/scripts
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2024-09-04 20:27:21 +0200
committerDavid Lönnhager <david.l@mullvad.net>2024-09-05 07:54:14 +0200
commit95cab9fe562dfc5d446227ef0a0e86be00dd30c9 (patch)
treead81fe7263684ef200e3e2674630fce889fcd7dc /test/scripts
parent4491033d00a372d63d0d05459f44725991e54fb5 (diff)
downloadmullvadvpn-95cab9fe562dfc5d446227ef0a0e86be00dd30c9.tar.xz
mullvadvpn-95cab9fe562dfc5d446227ef0a0e86be00dd30c9.zip
Add 'assume yes' to package installs in tests
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/ssh-setup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/scripts/ssh-setup.sh b/test/scripts/ssh-setup.sh
index dd72bca4f8..08887d4aba 100644
--- a/test/scripts/ssh-setup.sh
+++ b/test/scripts/ssh-setup.sh
@@ -129,15 +129,15 @@ robust_apt () {
# We don't want to fail due to the global apt lock being
# held, which happens sporadically. It is fine to wait for
# some time if it means that the test run can continue.
- apt -o DPkg::Lock::Timeout=60 "$@"
+ DEBIAN_FRONTEND=noninteractive apt-get -qy -o DPkg::Lock::Timeout=60 "$@"
}
function install_packages_apt {
echo "Installing required apt packages"
robust_apt update
- robust_apt install -yf xvfb wireguard-tools curl
+ robust_apt install xvfb wireguard-tools curl
if ! which ping &>/dev/null; then
- robust_apt install -yf iputils-ping
+ robust_apt install iputils-ping
fi
curl -fsSL https://get.docker.com | sh
}