Skip to content

Commit

Permalink
[ftsr] Fix flaky test suite runner jon when using buildkite UI (elast…
Browse files Browse the repository at this point in the history
…ic#122296) (elastic#122307)

Co-authored-by: Brian Seeders <[email protected]>
  • Loading branch information
kibanamachine and brianseeders authored Jan 5, 2022
1 parent 6f97f07 commit b8fbbef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .buildkite/pipelines/flaky_tests/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit b8fbbef

Please sign in to comment.