From 871c2da5bb472b23c0fa29519932612ca8cb3164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=E9=87=91=E5=8F=AF=E6=98=8E?= Date: Wed, 17 Feb 2021 11:45:18 +0800 Subject: [PATCH] fix: temp allow more output in CI --- scripts/run-vader-tests.sh | 61 ++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/scripts/run-vader-tests.sh b/scripts/run-vader-tests.sh index d546c509..bdba9ff8 100755 --- a/scripts/run-vader-tests.sh +++ b/scripts/run-vader-tests.sh @@ -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() {