summaryrefslogtreecommitdiff
path: root/tests/e2e
diff options
context:
space:
mode:
Diffstat (limited to 'tests/e2e')
-rwxr-xr-xtests/e2e/e2e-test.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/e2e/e2e-test.sh b/tests/e2e/e2e-test.sh
index 3006c5b..6e50604 100755
--- a/tests/e2e/e2e-test.sh
+++ b/tests/e2e/e2e-test.sh
@@ -8,9 +8,11 @@
#
# as an example:
# export FROM_EXTERNAL_OPTS='-f user@example.org --tlsc --au user@example.or -ap MYPASSWORD -s smtp.example.org'
+#
+# TODO:
+# - Timeout waiting for mail
-set -x
set -e
PROVIDER='cdev.bitmask.net'
@@ -60,9 +62,10 @@ echo "IMAP/SMTP PASSWD: $imap_pw"
# Send testmail
$SWAKS $FROM_EXTERNAL_OPTS
-# XXX wait until we the get mail we just sent.
-
-while [[ ! $(./tests/e2e/getmail --mailbox INBOX --subject "$MAIL_UUID" $user $imap_pw) ]]
+# wait until we the get mail we just sent.
+while ! ./tests/e2e/getmail --mailbox INBOX --subject "$MAIL_UUID" "$user" "$imap_pw" > /dev/null
do
sleep 10
done
+
+echo "Succeeded - mail arrived"