From b8fbbef26b05da2aecfe5ae3a7a9c21e507d6f04 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 4 Jan 2022 22:38:56 -0500 Subject: [PATCH] [ftsr] Fix flaky test suite runner jon when using buildkite UI (#122296) (#122307) Co-authored-by: Brian Seeders --- .buildkite/pipelines/flaky_tests/runner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipelines/flaky_tests/runner.js b/.buildkite/pipelines/flaky_tests/runner.js index 8529181644fd7..cff4f9c0f29e7 100644 --- a/.buildkite/pipelines/flaky_tests/runner.js +++ b/.buildkite/pipelines/flaky_tests/runner.js @@ -29,7 +29,9 @@ function getTestSuitesFromMetadata() { } const value = - overrideCount || execSync(`buildkite-agent meta-data get '${key}'`).toString().trim(); + overrideCount && overrideCount !== '0' + ? overrideCount + : execSync(`buildkite-agent meta-data get '${key}'`).toString().trim(); const count = value === '' ? defaultCount : parseInt(value); testSuites.push({