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