Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Trevor Gamblin <tgamblin@baylibre.com>
To: alex.kanavin@gmail.com, openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: Re: [OE-core] [PATCH v3 1/3] patchtest: use HEAD commit as base for the selftest and not master
Date: Mon, 18 Nov 2024 11:33:18 -0500	[thread overview]
Message-ID: <c7be93c7-0b25-4a4c-9669-69c1ccbbc547@baylibre.com> (raw)
In-Reply-To: <20241118162643.1423409-1-alex.kanavin@gmail.com>


On 2024-11-18 11:26, Alexander Kanavin via lists.openembedded.org wrote:
> 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>
LGTM.
> ---
>   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
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#207222): https://lists.openembedded.org/g/openembedded-core/message/207222
> Mute This Topic: https://lists.openembedded.org/mt/109647316/7611679
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [tgamblin@baylibre.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


      parent reply	other threads:[~2024-11-18 16:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Trevor Gamblin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c7be93c7-0b25-4a4c-9669-69c1ccbbc547@baylibre.com \
    --to=tgamblin@baylibre.com \
    --cc=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox