From ef80c6b2a36c80d3d29e0fb2ce07eead9f37685d Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Sun, 20 Sep 2020 01:09:10 +0200 Subject: [PATCH] Add setup/teardown marker tests --- test/tests.bats | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/tests.bats b/test/tests.bats index 1193fcc4..6f775111 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -85,6 +85,11 @@ function count_processed_changes() { docker exec $containerName cat /var/log/supervisor/changedetector.log | grep "Change detected" | wc -l } +# this test must come first to reliably identify when to run setup_file +@test "first" { + skip 'Starting testing of letsencrypt SSL' +} + # # configuration checks # @@ -238,7 +243,7 @@ function count_processed_changes() { @test "checking smtp: delivers mail to existing account" { run docker exec mail /bin/sh -c "grep 'postfix/lmtp' /var/log/mail/mail.log | grep 'status=sent' | grep ' Saved)' | sed 's/.* to= 6 1 , orig_to= @@ -1624,3 +1629,7 @@ EOF run docker exec mail grep "Subject: Root Test Message" /var/mail/localhost.localdomain/user1/new/ -R assert_success } + +@test "last" { + # this test is only there to reliably mark the end for the teardown_file +}