Skip to content

Commit 0c7b446

Browse files
konveyor-ci-bot[bot]jortelaufi
authored
Detect task succeeded with errors. (#262) (#340)
Signed-off-by: Jeff Ortel <[email protected]> Signed-off-by: Marek Aufart <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Co-authored-by: Jeff Ortel <[email protected]> Co-authored-by: Marek Aufart <[email protected]>
1 parent 8ad7aa4 commit 0c7b446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analysis/analysis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func TestApplicationAnalysis(t *testing.T) {
193193
return
194194
}
195195

196-
if task.State != "Succeeded" {
196+
if task.State != "Succeeded" || len(task.Errors) > 0 {
197197
t.Error("Analyze Task failed. Details:")
198198
err = printTask(task, debugDirectory)
199199
if err != nil {

0 commit comments

Comments
 (0)