From f3f38db0f9765312595eaec3b8f1380519a987ee Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+aendeavor@users.noreply.github.com> Date: Thu, 18 Feb 2021 13:11:45 +0100 Subject: [PATCH] adjust test to use new script output from openDKIM --- target/bin/open-dkim | 3 ++- test/tests.bats | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/target/bin/open-dkim b/target/bin/open-dkim index 699199f5..d8b05975 100755 --- a/target/bin/open-dkim +++ b/target/bin/open-dkim @@ -6,7 +6,7 @@ DOMAINS= function __usage { - echo -e "\e[35mOPEN-DKIM\e[31m(\e[93m8\e[31m) + printf "\e[35mOPEN-DKIM\e[31m(\e[93m8\e[31m) \e[38;5;214mNAME\e[39m open-dkim - configure DomainKeys Identified Mail (DKIM) @@ -44,6 +44,7 @@ function __usage \e[38;5;214mEXIT STATUS\e[39m Exit status is 0 if command was successful. If wrong arguments are provided or arguments contain errors, the script will exit early with exit status 2. + " } diff --git a/test/tests.bats b/test/tests.bats index f42bef05..be8d388f 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -1127,10 +1127,10 @@ EOF assert_failure } -@test "checking setup.sh: setup.sh dkim help" { - run ./setup.sh -c mail dkim help +@test "checking setup.sh: setup.sh config dkim help" { + run ./setup.sh -c mail config dkim help assert_success - assert_line --index 1 "Generate DKIM Configuration" + assert_line --index 2 " open-dkim - configure DomainKeys Identified Mail (DKIM)" } # debug