.
This commit is contained in:
parent
0b18e32fe0
commit
ed135c4139
@ -135,8 +135,8 @@ func processBuildStatus(h *common.RequestHandler, project, refProject *common.Bu
|
|||||||
h.Log("comparing results %d vs. ref %d", len(project.Result), len(refProject.Result))
|
h.Log("comparing results %d vs. ref %d", len(project.Result), len(refProject.Result))
|
||||||
done:
|
done:
|
||||||
for i := 0; i < len(project.Result); i++ {
|
for i := 0; i < len(project.Result); i++ {
|
||||||
j := 0
|
|
||||||
h.Log("searching for %s/%s", project.Result[i].Repository, project.Result[i].Arch)
|
h.Log("searching for %s/%s", project.Result[i].Repository, project.Result[i].Arch)
|
||||||
|
j := 0
|
||||||
for ; j < len(refProject.Result); j++ {
|
for ; j < len(refProject.Result); j++ {
|
||||||
if project.Result[i].Repository != refProject.Result[j].Repository ||
|
if project.Result[i].Repository != refProject.Result[j].Repository ||
|
||||||
project.Result[i].Arch != refProject.Result[j].Arch {
|
project.Result[i].Arch != refProject.Result[j].Arch {
|
||||||
@ -147,7 +147,7 @@ done:
|
|||||||
res := processRepoBuildStatus(h, project.Result[i].Status, refProject.Result[j].Status)
|
res := processRepoBuildStatus(h, project.Result[i].Status, refProject.Result[j].Status)
|
||||||
switch res {
|
switch res {
|
||||||
case BuildStatusSummarySuccess:
|
case BuildStatusSummarySuccess:
|
||||||
if i-1 == len(project.Result) {
|
if i == len(project.Result)-1 {
|
||||||
break done
|
break done
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
@ -156,6 +156,7 @@ done:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h.Log("%d", j)
|
||||||
if j >= len(refProject.Result) {
|
if j >= len(refProject.Result) {
|
||||||
h.LogError("Cannot find results... %#v \n %#v\n", project.Result[i], refProject.Result)
|
h.LogError("Cannot find results... %#v \n %#v\n", project.Result[i], refProject.Result)
|
||||||
return BuildStatusSummaryUnknown
|
return BuildStatusSummaryUnknown
|
||||||
|
Loading…
Reference in New Issue
Block a user