File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ jobs:
181
181
- name : Check Unit Test Success
182
182
shell : bash
183
183
run : |
184
+ cd FastDeploy
184
185
if [ "$TEST_EXIT_CODE" -eq 8 ]; then
185
186
if [ -z "${unittest_failed_url}" ]; then
186
187
echo "No diff unit failed file URL provided."
@@ -200,14 +201,16 @@ jobs:
200
201
- name : Verify Code Coverage Threshold (80%)
201
202
shell : bash
202
203
run : |
204
+ cd FastDeploy
203
205
if [ "$COVERAGE_EXIT_CODE" -eq 9 ]; then
204
206
echo "Coverage generation failed (exit code 9)"
207
+ filename=$(basename "$diff_cov_result_json_url")
205
208
if [ -z "${diff_cov_result_json_url}" ]; then
206
209
echo "No diff cov result file URL provided."
207
210
else
208
- wget ${diff_cov_result_json_url} || echo "Download cov json file failed, but continuing..."
211
+ rm -rf "${filename}"
212
+ wget -O ${filename} ${diff_cov_result_json_url} || echo "Download cov json file failed, but continuing..."
209
213
fi
210
- filename=$(basename "$diff_cov_result_json_url")
211
214
if [ -f "${filename}" ];then
212
215
echo "Failed test cases:"
213
216
if command -v jq >/dev/null 2>&1; then
You can’t perform that action at this time.
0 commit comments