summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2024-06-25 09:11:32 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2024-06-25 14:49:39 +0200
commitcf46dcaeeb096963c4107c03e7a3d6bb9a4d6128 (patch)
treebf02cf18dfd21235095e9bb6e76d322434aa63e5
parent02b1e364b1178789a48326d1c1d1c3364ff7e227 (diff)
downloadmullvadvpn-cf46dcaeeb096963c4107c03e7a3d6bb9a4d6128.tar.xz
mullvadvpn-cf46dcaeeb096963c4107c03e7a3d6bb9a4d6128.zip
Add a human-friendly error message if packages directory is missing
-rwxr-xr-xtest/container-run.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/container-run.sh b/test/container-run.sh
index 58425b2a4d..e4f24a29d9 100755
--- a/test/container-run.sh
+++ b/test/container-run.sh
@@ -6,6 +6,10 @@ CARGO_REGISTRY_VOLUME_NAME=${CARGO_REGISTRY_VOLUME_NAME:-"cargo-registry"}
CONTAINER_RUNNER=${CONTAINER_RUNNER:-"podman"}
PACKAGES_DIR=${PACKAGES_DIR:-"$HOME/.cache/mullvad-test/packages"}
+if [ ! -d "$PACKAGES_DIR" ]; then
+ echo "$PACKAGES_DIR does not exist. It is needed to build the test bundle, so please go ahead and create the directory and re-run this script."
+fi
+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_DIR="$SCRIPT_DIR/.."
cd "$SCRIPT_DIR"