Skip to content

Commit c51bd2f

Browse files
committed
azure: tests: reset FAILED status if flaky re-run succeeds
While we already do have logic to re-run flaky tests, the FAILED variable currently does not get reset to "0". As a result, successful reruns will still cause the test to be registered as failed. Fix this by resetting the variable accordingly.
1 parent b33ad76 commit c51bd2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

azure-pipelines/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ run_test() {
5454
CLAR_SUMMARY="${BUILD_DIR}/results_${1}.xml" ctest -V -R "^${1}$" || RETURN_CODE=$? && true
5555

5656
if [ "$RETURN_CODE" -eq 0 ]; then
57+
FAILED=0
5758
break
5859
fi
5960

0 commit comments

Comments
 (0)