Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pares test result #468

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/utils/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Usage: $(basename "$0") <options>
33) set label
34) get e2e tes _result
35) bump chart version
36) parse test result
-tn, --tag-name Release tag name
-gr, --github-repo Github Repo
-gt, --github-token Github token
Expand Down Expand Up @@ -798,6 +799,20 @@ bump_chart_version() {
fi
}

parse_test_result() {
if [[ -z "${TEST_RESULT}" ]]; then
return
fi
test_result_report_output_file_log="test-result-report-output.log"
if [[ ! -f "${test_result_report_output_file_log}" ]]; then
touch "${test_result_report_output_file_log}"
fi
for test_ret in `echo "$TEST_RESULT" | sed 's/##/ /g'`; do
test_ret=$( echo "$test_ret" | sed 's/#/ /g' )
echo "$test_ret" >> "${test_result_report_output_file_log}"
done
}

parse_command_line() {
while :; do
case "${1:-}" in
Expand Down Expand Up @@ -1104,6 +1119,9 @@ main() {
35)
bump_chart_version
;;
36)
parse_test_result
;;
esac
}

Expand Down
Loading