diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-10-19 17:03:32 -0400 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-11-24 05:01:37 -1000 |
commit | 7dd1867c771a122c5398476d4a78574a4e2e0ae6 (patch) | |
tree | 77b0597d02a77e922637100e24aea53aa784eac7 /meta | |
parent | 5972abb328e58fb4745faeb861daed3e10662e3c (diff) | |
download | poky-7dd1867c771a122c5398476d4a78574a4e2e0ae6.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: 127fa20bd1d628548f7f4ba087b3ca105e705098)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e6cf23e353f48c57249681bd0b12bd8494d4959a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-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', |