]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
patchtest: skip merge test if not targeting master
authorTrevor Gamblin <tgamblin@baylibre.com>
Thu, 19 Oct 2023 21:03:32 +0000 (17:03 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Oct 2023 21:25:21 +0000 (22:25 +0100)
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.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/patchtest/tests/test_mbox_merge.py

index bc55c588b402c94743dde2b6e841214527700b7e..f69d57c71b12b9a35955889365fb63bf1805bb06 100644 (file)
@@ -18,6 +18,8 @@ def headlog():
 
 class Merge(base.Base):
     def test_series_merge_on_head(self):
+        if PatchTestInput.repo.branch != "master":
+            self.skip("Skipping merge test since patch is not intended for master branch. Target detected is %s" % PatchTestInput.repo.branch)
         if not PatchTestInput.repo.ismerged:
             commithash, author, date, shortlog = headlog()
             self.fail('Series does not apply on top of target branch. Rebase your series and ensure the target is correct',