Skip to content

Commit

Permalink
ci: Only run flaky test when there is flaky data (envoyproxy#17131)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Jun 24, 2021
1 parent 4da0b35 commit f91f79b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,12 @@ function bazel_binary_build() {
}

function run_process_test_result() {
echo "running flaky test reporting script"
"${ENVOY_SRCDIR}"/ci/flaky_test/run_process_xml.sh "$CI_TARGET"
if [[ $(find "$TEST_TMPDIR" -name "*_attempt.xml" 2> /dev/null) ]]; then
echo "running flaky test reporting script"
"${ENVOY_SRCDIR}"/ci/flaky_test/run_process_xml.sh "$CI_TARGET"
else
echo "no flaky test results found"
fi
}

function run_ci_verify () {
Expand Down

0 comments on commit f91f79b

Please sign in to comment.