mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
Run sedfile tests in container (#2569)
This commit is contained in:
parent
628e902233
commit
18acd7860b
2 changed files with 47 additions and 38 deletions
|
@ -9,19 +9,11 @@
|
|||
# Is a file change expected? --> use 'sedfile --strict -i'
|
||||
# Is a file change only on the first container run expected? --> use 'sedfile -i'
|
||||
|
||||
if [[ -e /usr/local/bin/helpers/log.sh ]]
|
||||
then
|
||||
# shellcheck source=../scripts/helpers/log.sh
|
||||
source /usr/local/bin/helpers/log.sh
|
||||
else
|
||||
# when running BATS (unit tests), this file is not located
|
||||
# inside a container; as a consequence, we need to source
|
||||
# from a different location
|
||||
source target/scripts/helpers/log.sh
|
||||
fi
|
||||
|
||||
set -ueo pipefail
|
||||
|
||||
# shellcheck source=../scripts/helpers/log.sh
|
||||
source /usr/local/bin/helpers/log.sh
|
||||
|
||||
function __usage { echo "Usage: ${0} -i <replace/delete operation> <file>" ; }
|
||||
|
||||
HASHTOOL='sha1sum'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue