Skip to content

Commit

Permalink
fix: temp allow more output in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Feb 17, 2021
1 parent d558715 commit 871c2da
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions scripts/run-vader-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,40 @@ run_file="$(mktemp)"

function filter-vader-output() {
local hit_first_vader_line=0
local filtered_data=''

while read -r; do
# Search for the first Vader output line.
# if ((!hit_first_vader_line)); then
# if [[ "$REPLY" = *'Starting Vader:'* ]]; then
# hit_first_vader_line=1
# else
# continue;
# fi
# fi

if [[ "$REPLY" = *'GIVEN'* ]] \
|| [[ "$REPLY" = *'DO'* ]] \
|| [[ "$REPLY" = *'EXECUTE'* ]] \
|| [[ "$REPLY" = *'THEN'* ]] \
|| [[ "$REPLY" = *'EXPECT'* ]] \
|| [[ "$REPLY" = *'BEFORE'* ]] \
|| [[ "$REPLY" = *'AFTER'* ]] \
|| [[ "$REPLY" = *'Starting Vader:'* ]] \
|| [[ "$REPLY" = *'Success/Total'* ]] \
|| [[ "$REPLY" = *'Elapsed time:'* ]]
then
echo "$REPLY"
fi
echo "$REPLY"
done

# Echo a 1 into the temp file to indicate this (re)try is successful.
if ((hit_first_vader_line)); then
echo 1 > "$run_file"
fi
echo 1 > "$run_file"

# while read -r; do
# # Search for the first Vader output line.
# if ((!hit_first_vader_line)); then
# if [[ "$REPLY" = *'Starting Vader:'* ]]; then
# hit_first_vader_line=1
# # else
# # continue;
# fi
# fi
#
# if [[ "$REPLY" = *'GIVEN'* ]] \
# || [[ "$REPLY" = *'DO'* ]] \
# || [[ "$REPLY" = *'EXECUTE'* ]] \
# || [[ "$REPLY" = *'THEN'* ]] \
# || [[ "$REPLY" = *'EXPECT'* ]] \
# || [[ "$REPLY" = *'BEFORE'* ]] \
# || [[ "$REPLY" = *'AFTER'* ]] \
# || [[ "$REPLY" = *'Starting Vader:'* ]] \
# || [[ "$REPLY" = *'Success/Total'* ]] \
# || [[ "$REPLY" = *'Elapsed time:'* ]]
# then
# echo "$REPLY"
# fi
# done

# # Echo a 1 into the temp file to indicate this (re)try is successful.
# if ((hit_first_vader_line)); then
# echo 1 > "$run_file"
# fi
}

function color-vader-output() {
Expand Down

0 comments on commit 871c2da

Please sign in to comment.