Skip to content

Commit

Permalink
fix edge-case
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Feb 15, 2025
1 parent 1cea127 commit c8528e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/usr/local/bin/cicd/post_exec.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ EXIT_CODE_FILE='{{ tester.rc.file }}'
test_script="$1"
test="$2"
repo_name="$3"
rc_file="${EXIT_CODE_FILE}${repo_name}_${test}.rc"

exit_code=$(cat "${EXIT_CODE_FILE}${repo_name}_${test}.rc")
if [ -f "$rc_file" ]
then
exit_code=$(cat "$rc_file")
else
exit_code=1
fi

if [ "$exit_code" != '0' ] && [ "$exit_code" != "$EXIT_CODE_SOFT" ]
then
Expand Down

0 comments on commit c8528e8

Please sign in to comment.