Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v3 1/3] patchtest: use HEAD commit as base for the selftest and not master
@ 2024-11-18 16:26 Alexander Kanavin
  2024-11-18 16:26 ` [PATCH v3 2/3] bitbake.conf: add an addfragments directive for oe-core and dependent layers Alexander Kanavin
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Alexander Kanavin @ 2024-11-18 16:26 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

From: Alexander Kanavin <alex@linutronix.de>

Patchtest applies patches on top of poky master branch by default;
this means selftest does the same, and any commits from the branch-under-test
are then discarded.

This can cause issues for example, if bitbake-server process started by selftest
from the master branch tries to parse bitbake.conf from the branch under test:
https://valkyrie.yoctoproject.org/#/builders/71/builds/460

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/lib/patchtest/selftest/selftest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/patchtest/selftest/selftest b/meta/lib/patchtest/selftest/selftest
index 6fad50ce616..3cf1c361f7f 100755
--- a/meta/lib/patchtest/selftest/selftest
+++ b/meta/lib/patchtest/selftest/selftest
@@ -38,7 +38,7 @@ def test(root, patch):
     res = True
     patchpath = os.path.abspath(os.path.join(root, patch))
     
-    cmd     = 'patchtest --repodir %s --testdir %s/tests --patch %s' % (repodir, topdir, patchpath)
+    cmd     = 'patchtest --base-commit HEAD --repodir %s --testdir %s/tests --patch %s' % (repodir, topdir, patchpath)
     results = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True, shell=True)
 
     return results
-- 
2.39.5



^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-12-27 19:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 16:26 [PATCH v3 1/3] patchtest: use HEAD commit as base for the selftest and not master Alexander Kanavin
2024-11-18 16:26 ` [PATCH v3 2/3] bitbake.conf: add an addfragments directive for oe-core and dependent layers Alexander Kanavin
2024-11-18 16:26 ` [PATCH v3 3/3] bitbake-config-build: add a plugin for config fragments Alexander Kanavin
2024-11-18 16:32   ` Patchtest results for " patchtest
2024-12-09 16:33   ` [OE-core] " Richard Purdie
2024-12-10 12:22     ` Alexander Kanavin
2024-12-09 17:00   ` Richard Purdie
2024-12-10 13:05     ` Alexander Kanavin
2024-12-10 15:27       ` Richard Purdie
2024-12-11 11:24         ` Alexander Kanavin
2024-12-16 16:58           ` Richard Purdie
2024-12-20 17:39             ` Joshua Watt
2024-12-25 15:29               ` Alexander Kanavin
2024-12-25 15:33                 ` Joshua Watt
2024-12-27 18:12                   ` Joshua Watt
2024-12-27 18:44                     ` Alexander Kanavin
2024-12-27 19:47                       ` Joshua Watt
2024-11-18 16:33 ` [OE-core] [PATCH v3 1/3] patchtest: use HEAD commit as base for the selftest and not master Trevor Gamblin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox