fix init test if BOTTOKEN is set

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-12-28 22:35:24 +01:00
parent d496639cbb
commit be87ba3e23
3 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,7 @@
# 8 - curl/wget missing
# 10 - not bash!
#
#### $$VERSION$$ v1.21-dev-17-g8c9298d
#### $$VERSION$$ v1.21-dev-25-gd496639
##################################################################
# shellcheck disable=SC2140,SC2031,SC2120,SC1091,SC1117,SC2059

View File

@ -5,7 +5,7 @@
#
# Description: run all tests, exit after failed test
#
#### $$VERSION$$ v1.21-dev-22-ga3efcd2
#### $$VERSION$$ v1.21-dev-25-gd496639
#############################################################
# magic to ensure that we're always inside the root of our application,

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ v1.20-0-g2ab00a2
#### $$VERSION$$ v1.21-dev-25-gd496639
# include common functions and definitions
# shellcheck source=test/ALL-tests.inc.sh
@ -10,6 +10,7 @@ TESTFILES="${TOKENFILE} ${ACLFILE} ${COUNTFILE} ${BLOCKEDFILE} ${ADMINFILE}"
set -e
# run bashbot first time with init
export BOTTOKEN=""
"${TESTDIR}/bashbot.sh" init >"${LOGFILE}" <<EOF
$TESTTOKEN
nobody