Skip to content

Commit

Permalink
chore(ci): revert changes back and echo everything for debugging purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Jul 9, 2023
1 parent 7a39a6a commit 720e128
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions scripts/run-vader-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function filter-vader-output() {
local hit_first_vader_line=0
local force_echo=0

echo "$REPLY"

while read -r; do
# Search for the first Vader output line.
if ((!hit_first_vader_line)); then
Expand All @@ -38,14 +40,14 @@ function filter-vader-output() {
force_echo=0
fi

if [[ "$REPLY" =~ \[[A-Z\ ]+\] ]] \
|| [[ "$REPLY" = *'Starting Vader:'* ]] \
|| [[ "$REPLY" = *'Success/Total'* ]] \
|| [[ "$REPLY" = *'Elapsed time:'* ]] \
|| [[ $force_echo = 1 ]]
then
echo "$REPLY"
fi
# if [[ "$REPLY" =~ \[[A-Z\ ]+\] ]] \
# || [[ "$REPLY" = *'Starting Vader:'* ]] \
# || [[ "$REPLY" = *'Success/Total'* ]] \
# || [[ "$REPLY" = *'Elapsed time:'* ]] \
# || [[ $force_echo = 1 ]]
# then
# echo "$REPLY"
# fi
done

# Echo a 1 into the temp file to indicate this (re)try is successful.
Expand Down Expand Up @@ -108,8 +110,7 @@ while [ "$tries" -lt $max_retries ]; do

set -o pipefail

# "$vim" -u $ROOT_DIR/test/vimrc "+Vader! $tests" 2>&1 | filter-vader-output | color-vader-output || exit_code=$?
"$vim" -u $ROOT_DIR/test/vimrc "+Vader! $tests" 2>&1 || exit_code=$?
"$vim" -u $ROOT_DIR/test/vimrc "+Vader! $tests" 2>&1 | filter-vader-output | color-vader-output || exit_code=$?

set +o pipefail

Expand Down

0 comments on commit 720e128

Please sign in to comment.