From 170c5229c340653edf85221b3cdec211c8e0ea6d Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 22 Dec 2016 19:27:08 +0100 Subject: [test] make e2e test more robust, document deps --- tests/e2e/e2e-test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/e2e/e2e-test.sh b/tests/e2e/e2e-test.sh index dea4c00d..2ddcd71b 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" -- cgit v1.2.3