From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Alexander Kanavin <alex.kanavin@gmail.com>,
openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: Re: [OE-core] [PATCH 6/6] selftest/bblayers: add a test for creating a layer setup and using it to restore the layers
Date: Tue, 16 Aug 2022 21:29:54 +0100 [thread overview]
Message-ID: <e8df5fddbd7eec4d13f111da863e71b75a0dbabd.camel@linuxfoundation.org> (raw)
In-Reply-To: <20220729141049.835733-6-alex@linutronix.de>
On Fri, 2022-07-29 at 16:10 +0200, Alexander Kanavin wrote:
> This does a basic run-through of the bitbake-layers plugin, and the resulting json layer config
> and the layer setup script that uses it. Only poky is actually fetched by the script.
>
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
> meta/lib/oeqa/selftest/cases/bblayers.py | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/meta/lib/oeqa/selftest/cases/bblayers.py b/meta/lib/oeqa/selftest/cases/bblayers.py
> index 4f4952f3eb..1f5c576356 100644
> --- a/meta/lib/oeqa/selftest/cases/bblayers.py
> +++ b/meta/lib/oeqa/selftest/cases/bblayers.py
> @@ -140,3 +140,15 @@ class BitbakeLayers(OESelftestTestCase):
> def test_validate_examplelayersjson(self):
> json = os.path.join(get_bb_var('COREBASE'), "meta/files/layers.example.json")
> self.validate_layersjson(json)
> +
> + def test_bitbakelayers_setup(self):
> + result = runCmd('bitbake-layers create-layers-setup {}'.format(self.testlayer_path))
> + jsonfile = os.path.join(self.testlayer_path, "setup-layers.json")
> + self.validate_layersjson(jsonfile)
> +
> + testcheckoutdir = os.path.join(self.builddir, 'test-layer-checkout')
> + result = runCmd('{}/setup-layers --destdir {}'.format(self.testlayer_path, testcheckoutdir))
> + # May not necessarily be named 'poky'
> + pokydir = os.listdir(testcheckoutdir)[0]
> + testcheckoutfile = os.path.join(testcheckoutdir, pokydir, "oe-init-build-env")
> + self.assertTrue(os.path.exists(testcheckoutfile), "File {} not found in test layer checkout".format(testcheckoutfile))
https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4001/steps/14/logs/stdio
(and other similar selftest failures)
I suspect this was due to master-next being force pushed whilst the
build was running.
Cheers,
Richard
next prev parent reply other threads:[~2022-08-16 20:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-29 14:10 [PATCH 1/6] scripts/oe-setup-builddir: make it known where configurations come from Alexander Kanavin
2022-07-29 14:10 ` [PATCH 2/6] bitbake-layers: add a command to save the active build configuration as a template into a layer Alexander Kanavin
2022-07-29 14:10 ` [PATCH 3/6] meta/files: add layer setup JSON schema and example Alexander Kanavin
2022-07-29 14:10 ` [PATCH 4/6] bitbake-layers: add ability to save current layer repository configuration into a json file Alexander Kanavin
2022-07-29 14:10 ` [PATCH 5/6] scripts/oe-setup-layers: add a script that restores the layer configuration from " Alexander Kanavin
2022-08-02 13:12 ` [OE-core] " Luca Ceresoli
2022-08-02 14:31 ` Alexander Kanavin
2022-07-29 14:10 ` [PATCH 6/6] selftest/bblayers: add a test for creating a layer setup and using it to restore the layers Alexander Kanavin
2022-08-16 20:29 ` Richard Purdie [this message]
2022-08-16 20:41 ` [OE-core] " Alexander Kanavin
2022-07-29 19:55 ` [OE-core] [PATCH 1/6] scripts/oe-setup-builddir: make it known where configurations come from Peter Kjellerstedt
2022-07-29 20:11 ` Alexander Kanavin
2022-07-30 9:54 ` Peter Kjellerstedt
2022-07-30 17:31 ` Alexander Kanavin
2022-07-30 18:15 ` Chuck Wolber
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=e8df5fddbd7eec4d13f111da863e71b75a0dbabd.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--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