diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-10-19 17:03:32 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-19 22:25:23 +0100 |
commit | 8cea0676b7e71f069303394ccef2421bcc221c2c (patch) | |
tree | 40ca94716fb11ec83a4a85780ea24a509be328eb /meta/lib/patchtest | |
parent | 9b8b9a9fa3dce59ac6f5ff0e0526b109768f796e (diff) | |
download | poky-8cea0676b7e71f069303394ccef2421bcc221c2c.tar.gz |
patchtest: skip merge test if not targeting master
Avoid testing mergeability of a patch when not targeting master, so that
patches tested via other means (e.g. maintainer branches and AB runs)
don't get unnecessarily reviewed an extra time.
(From OE-Core rev: e6cf23e353f48c57249681bd0b12bd8494d4959a)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest')
-rw-r--r-- | meta/lib/patchtest/tests/test_mbox_merge.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/patchtest/tests/test_mbox_merge.py b/meta/lib/patchtest/tests/test_mbox_merge.py index bc55c588b4..f69d57c71b 100644 --- a/meta/lib/patchtest/tests/test_mbox_merge.py +++ b/meta/lib/patchtest/tests/test_mbox_merge.py | |||
@@ -18,6 +18,8 @@ def headlog(): | |||
18 | 18 | ||
19 | class Merge(base.Base): | 19 | class Merge(base.Base): |
20 | def test_series_merge_on_head(self): | 20 | def test_series_merge_on_head(self): |
21 | if PatchTestInput.repo.branch != "master": | ||
22 | self.skip("Skipping merge test since patch is not intended for master branch. Target detected is %s" % PatchTestInput.repo.branch) | ||
21 | if not PatchTestInput.repo.ismerged: | 23 | if not PatchTestInput.repo.ismerged: |
22 | commithash, author, date, shortlog = headlog() | 24 | commithash, author, date, shortlog = headlog() |
23 | self.fail('Series does not apply on top of target branch. Rebase your series and ensure the target is correct', | 25 | self.fail('Series does not apply on top of target branch. Rebase your series and ensure the target is correct', |