mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-02-05 03:48:24 +00:00
fix init test if BOTTOKEN is set
This commit is contained in:
parent
d496639cbb
commit
be87ba3e23
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user