summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/utils/gitarchive.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/gitarchive.py b/meta/lib/oeqa/utils/gitarchive.py
index 73beafecb5..6046f183d5 100644
--- a/meta/lib/oeqa/utils/gitarchive.py
+++ b/meta/lib/oeqa/utils/gitarchive.py
@@ -221,7 +221,15 @@ def get_test_revs(log, repo, tag_name, **kwargs):
221 if not commit in revs: 221 if not commit in revs:
222 revs[commit] = TestedRev(commit, commit_num, [tag]) 222 revs[commit] = TestedRev(commit, commit_num, [tag])
223 else: 223 else:
224 assert commit_num == revs[commit].commit_number, "Commit numbers do not match" 224 if commit_num != revs[commit].commit_number:
225 # Historically we have incorrect commit counts of '1' in the repo so fix these up
226 if int(revs[commit].commit_number) < 5:
227 tags = revs[commit].tags
228 revs[commit] = TestedRev(commit, commit_num, [tags])
229 elif int(commit_num) < 5:
230 pass
231 else:
232 sys.exit("Commit numbers for commit %s don't match (%s vs %s)" % (commit, commit_num, revs[commit].commit_number))
225 revs[commit].tags.append(tag) 233 revs[commit].tags.append(tag)
226 234
227 # Return in sorted table 235 # Return in sorted table