Browse Source

Check for internal test before checking if previous test succeeded

pull/783/head
Tim Kimber 3 years ago
parent
commit
cca04dda73
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      test/34-ftp-passive.bats

+ 8
- 8
test/34-ftp-passive.bats View File

@ -155,15 +155,15 @@ EOF3
@test "Use ftpes (explicit ssl, port 21) to create challenge file" {
if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
fi
if [[ ! -f /etc/vsftpd.pem ]]; then
echo "FAILED: This test requires the previous test to succeed"
exit 1
fi
if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
fi
if [[ ! -d /var/www/html/.well-known/acme-challenge ]]; then
mkdir -p /var/www/html/.well-known/acme-challenge
fi
@ -217,15 +217,15 @@ EOF
@test "Use ftps (implicit ssl, port 990) to create challenge file" {
if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
fi
if [[ ! -f /etc/vsftpd.pem ]]; then
echo "FAILED: This test requires the previous test to succeed"
exit 1
fi
if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
fi
# Restart vsftpd listening on port 990
cat <<- _FTP >> $VSFTPD_CONF
implicit_ssl=YES


Loading…
Cancel
Save