Update test script and documentation.
This commit is contained in:
@ -56,12 +56,16 @@ vader_filter() {
|
||||
local err=0
|
||||
while read -r; do
|
||||
if [[ "$verbose" == 0 ]]; then
|
||||
if [[ "$REPLY" = *'docker:'* ]]; then
|
||||
# print line starting with 'docker:' since it could be an error with
|
||||
# the docker container starting
|
||||
# only print possible error cases
|
||||
if [[ "$REPLY" = *'docker:'* ]] || \
|
||||
[[ "$REPLY" = *'Starting Vader:'* ]] || \
|
||||
[[ "$REPLY" = *'Vader error:'* ]] || \
|
||||
[[ "$REPLY" = *'Vim: Error '* ]]; then
|
||||
echo "$REPLY"
|
||||
elif [[ "$REPLY" = *'Starting Vader:'* ]]; then
|
||||
elif [[ "$REPLY" = *'[EXECUTE] (X)'* ]] || \
|
||||
[[ "$REPLY" = *'[ EXPECT] (X)'* ]]; then
|
||||
echo "$REPLY"
|
||||
err=1
|
||||
elif [[ "$REPLY" = *'Success/Total:'* ]]; then
|
||||
success="$(echo -n "$REPLY" | grep -o '[0-9]\+/' | head -n1 | cut -d/ -f1)"
|
||||
total="$(echo -n "$REPLY" | grep -o '/[0-9]\+' | head -n1 | cut -d/ -f2)"
|
||||
@ -69,13 +73,6 @@ vader_filter() {
|
||||
err=1
|
||||
fi
|
||||
echo "$REPLY"
|
||||
elif [[ "$REPLY" = *'[EXECUTE] (X)'* ]] || [[ "$REPLY" = *'[ EXPECT] (X)'* ]]; then
|
||||
echo "$REPLY"
|
||||
err=1
|
||||
elif [[ "$REPLY" = *'Vader error:'* ]]; then
|
||||
echo "$REPLY"
|
||||
elif [[ "$REPLY" = *'Vim: Error '* ]]; then
|
||||
echo "$REPLY"
|
||||
fi
|
||||
else
|
||||
# just print everything
|
||||
@ -174,6 +171,9 @@ if [[ $# -ne 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# stop tests on ctrl-c or ctrl-z
|
||||
trap exit 1 SIGINT SIGTERM
|
||||
|
||||
# select which tests should run
|
||||
case $type in
|
||||
"vader" )
|
||||
|
Reference in New Issue
Block a user