summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-04-20 16:22:55 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-06-26 10:32:00 -0300
commit1f2e1645d987b64f625fa61c0056816fe422ae1f (patch)
tree59f1f298970442c5fa32b4cd4ef265e6c9982928
parent38159f5ae6dab9009fff0ce407a382edd7d0d142 (diff)
downloadmullvadvpn-1f2e1645d987b64f625fa61c0056816fe422ae1f.tar.xz
mullvadvpn-1f2e1645d987b64f625fa61c0056816fe422ae1f.zip
Warn if integration tests are run by non-root user
-rwxr-xr-xintegration-tests.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/integration-tests.sh b/integration-tests.sh
index 1be7064e4b..f69614109f 100755
--- a/integration-tests.sh
+++ b/integration-tests.sh
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+if [ "$UID" -ne 0 ]; then
+ echo "WARNING: Not running as root, some tests may fail" >&2
+fi
+
MULLVAD_DIR="$(cd "$(dirname "$0")"; pwd -P)"
pushd "$MULLVAD_DIR"