mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-21 23:25:08 +00:00
adjust send_meassge test
This commit is contained in:
parent
a3efcd2e7f
commit
1a0b51d2ab
@ -5,7 +5,7 @@
|
||||
#
|
||||
# Description: run all tests, exit after failed test
|
||||
#
|
||||
#### $$VERSION$$ v1.21-dev-10-g9bfc27a
|
||||
#### $$VERSION$$ v1.21-dev-22-ga3efcd2
|
||||
#############################################################
|
||||
|
||||
# magic to ensure that we're always inside the root of our application,
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
# Usage: source inject-json.sh
|
||||
#
|
||||
#### $$VERSION$$ v1.21-dev-21-g8c67bb7
|
||||
#### $$VERSION$$ v1.21-dev-22-ga3efcd2
|
||||
##############################################################
|
||||
|
||||
# download JSON.sh
|
||||
|
@ -127,5 +127,5 @@ You must update to [Version 1.20](https://github.com/topkecleon/telegram-bot-bas
|
||||
|
||||
#### [Next Create Bot](1_firstbot.md)
|
||||
|
||||
#### $$VERSION$$ v1.21-dev-21-g8c67bb7
|
||||
#### $$VERSION$$ v1.21-dev-22-ga3efcd2
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
||||
#### $$VERSION$$ v1.21-dev-22-ga3efcd2
|
||||
|
||||
# include common functions and definitions
|
||||
# shellcheck source=test/ALL-tests.inc.sh
|
||||
@ -45,10 +45,10 @@ touch "$ALLOW/this_is_my.gif" "$ALLOW/this_is_my.doc"
|
||||
touch "$DATADIR/this_is_my.gif" "$DATADIR/this_is_my.doc"
|
||||
|
||||
while read -r line ; do
|
||||
echo -n "."
|
||||
set -x
|
||||
set -x; set +e
|
||||
send_message "123456" "$line" >>"${OUTPUTFILE}"
|
||||
set +x
|
||||
set +x; set -e
|
||||
echo -n "."
|
||||
done < "${INPUTFILE}" 2>>"${LOGFILE}"
|
||||
[ -d "$ALLOW" ] && rm -rf "$ALLOW"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user