Skip to content

Commit

Permalink
Add skipped to failed() (#610)
Browse files Browse the repository at this point in the history
* Add skipped to failed()

* Update release_notes.md
  • Loading branch information
bootstraponline authored Oct 11, 2019
1 parent 8861f7b commit 4942e6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## next (unreleased)

-

## v8.0.1

- [#608](https://github.com/TestArmada/flank/pull/608) Use MatrixRollupOutcome to set exit code value. ([bootstraponline](https://github.com/bootstraponline))

## v8.0.0
Expand Down
4 changes: 4 additions & 0 deletions test_runner/src/main/kotlin/ftl/json/SavedMatrix.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ class SavedMatrix(matrix: TestMatrix) {
if (this.state == FINISHED) finished(matrix)
}

// ExitCodeFromRollupOutcome - https://github.com/bootstraponline/gcloud_cli/blob/137d864acd5928baf25434cf59b0225c4d1f9319/google-cloud-sdk/lib/googlecloudsdk/api_lib/firebase/test/exit_code.py#L46
fun failed(): Boolean {
// outcome of the test execution.
// skipped means unsupported environment
return when (outcome) {
failure -> true
skipped -> true
inconclusive -> true
else -> false
}
Expand Down

0 comments on commit 4942e6f

Please sign in to comment.