ci(e2e): Changed UNSTABLE state to be considered as a failure

UNSTABLE state means some tests have failed during the retries but also in the last retry so, it contemplates real failures too.
This commit is contained in:
Noelia 2023-02-10 11:41:08 +01:00 committed by Alexandra Betouni
parent a62e5cc223
commit 37c88cbaac
1 changed files with 1 additions and 2 deletions

View File

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