ci: clarify why we ignore UNSTABLE squish state

I tried using `--exitCodeOnFail` but it didn't work.
https://doc.qt.io/squish/cli-squishrunner.html#playback-option-op-op-op-op-exitcodeonfail

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-11-23 13:55:28 +01:00
parent f8293a12f4
commit 7ab06c6060
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ pipeline {
testSuite: "${WORKSPACE}/test/ui-test/testSuites/*",
])
print("Squish run result: ${result}")
/* Ignore UNSTABLE caused by retried tests. */
if (!['SUCCESS', 'UNSTABLE'].contains(result)) {
throw new Exception('Squish run failed!')
}