summaryrefslogtreecommitdiff
path: root/tests/e2e/e2e-test.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-12-22 19:27:08 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2016-12-26 14:55:49 +0100
commit170c5229c340653edf85221b3cdec211c8e0ea6d (patch)
tree4d33fb0b542230d50b1dc2095890be0894279747 /tests/e2e/e2e-test.sh
parent3fc6de97232a17a0ca9e67100d540bcceb048271 (diff)
[test] make e2e test more robust, document deps
Diffstat (limited to 'tests/e2e/e2e-test.sh')
-rwxr-xr-xtests/e2e/e2e-test.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/e2e/e2e-test.sh b/tests/e2e/e2e-test.sh
index dea4c00..2ddcd71 100755
--- a/tests/e2e/e2e-test.sh
+++ b/tests/e2e/e2e-test.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+# Dependencies
+# - swaks
+#
# Usage
#
# In order to send authenticated mail to the tmp_user you need to
@@ -39,11 +42,10 @@ SWAKS="swaks -t $user --h-Subject $MAIL_UUID --silent 2"
# and start a new instance
"$BCTL" stop
-rm -rf "$LEAP_HOME"
+[ -d "$LEAP_HOME" ] && rm -rf "$LEAP_HOME"
"$BCTL" start
-
# Register a new user
"$BCTL" user create "$user" --pass "$pw"