diff options
Diffstat (limited to 'meta/lib/oeqa/utils/gitarchive.py')
-rw-r--r-- | meta/lib/oeqa/utils/gitarchive.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/gitarchive.py b/meta/lib/oeqa/utils/gitarchive.py index 64448f47d9..f9c152681d 100644 --- a/meta/lib/oeqa/utils/gitarchive.py +++ b/meta/lib/oeqa/utils/gitarchive.py | |||
@@ -255,7 +255,15 @@ def get_test_revs(log, repo, tag_name, **kwargs): | |||
255 | if not commit in revs: | 255 | if not commit in revs: |
256 | revs[commit] = TestedRev(commit, commit_num, [tag]) | 256 | revs[commit] = TestedRev(commit, commit_num, [tag]) |
257 | else: | 257 | else: |
258 | assert commit_num == revs[commit].commit_number, "Commit numbers do not match" | 258 | if commit_num != revs[commit].commit_number: |
259 | # Historically we have incorrect commit counts of '1' in the repo so fix these up | ||
260 | if int(revs[commit].commit_number) < 5: | ||
261 | tags = revs[commit].tags | ||
262 | revs[commit] = TestedRev(commit, commit_num, [tags]) | ||
263 | elif int(commit_num) < 5: | ||
264 | pass | ||
265 | else: | ||
266 | sys.exit("Commit numbers for commit %s don't match (%s vs %s)" % (commit, commit_num, revs[commit].commit_number)) | ||
259 | revs[commit].tags.append(tag) | 267 | revs[commit].tags.append(tag) |
260 | 268 | ||
261 | # Return in sorted table | 269 | # Return in sorted table |