From: Rasmus Villemoes <ravi@prevas.dk>
To: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>,
Quentin Schulz <quentin.schulz@cherry.de>
Subject: Re: [PATCH v2 3/3] test: hook up test of allowing control DTB to act as FIT image
Date: Tue, 26 May 2026 23:18:24 +0200 [thread overview]
Message-ID: <878q95g99b.fsf@prevas.dk> (raw)
In-Reply-To: <CAFLszTgin=mUdzdxypMXrA867JFeesYE=fbO+-B+=Ce=X+iMLw@mail.gmail.com> (Simon Glass's message of "Mon, 25 May 2026 09:28:07 -0600")
On Mon, May 25 2026, Simon Glass <sjg@chromium.org> wrote:
> Hi Rasmus,
>
> On 2026-05-19T22:54:57, Rasmus Villemoes <ravi@prevas.dk> wrote:
>> test: hook up test of allowing control DTB to act as FIT image
>>
>> Add a test demonstrating how one can embed various scripts in the
>> control DTB.
>>
>> Verify that the source command can be used with ${fdtcontroladdr} by
>> itself (invoking the default script), and with :<node-name>
>> suffix. Also check that the scripts themselves can invoke 'sibling'
>> scripts.
>>
>> Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
>>
>> arch/sandbox/dts/sandbox-boot.sh | 2 ++
>> arch/sandbox/dts/sandbox-inner.sh | 4 ++++
>> arch/sandbox/dts/sandbox-outer.sh | 4 ++++
>> arch/sandbox/dts/sandbox_scripts.dtsi | 24 ++++++++++++++++++++++++
>> configs/sandbox_defconfig | 2 ++
>> test/py/tests/test_source.py | 18 ++++++++++++++++++
>> 6 files changed, 54 insertions(+)
>
>> diff --git a/test/py/tests/test_source.py b/test/py/tests/test_source.py
>> @@ -9,6 +9,7 @@ import utils
>> @pytest.mark.buildconfigspec('cmd_echo')
>> @pytest.mark.buildconfigspec('cmd_source')
>> @pytest.mark.buildconfigspec('fit')
>> +@pytest.mark.buildconfigspec('control_dtb_as_fit')
>> def test_source(ubman):
>
> buildconfigspec markers are ANDed in conftest.py, so the entire
> pre-existing test_source is now skipped on any sandbox build that has
> FIT but not CONTROL_DTB_AS_FIT - so silently losing coverage of the
> original source tests.
>
> Please split the new assertions into a second function, say
> test_source_control_dtb, with the extra marker on its own. That also
> makes the new functionality independently selectable.
Yes, I did consider doing that, and I must admit I'm not really sure why
I ended up not doing it. Will redo.
Is it worth it adding another function marked with
@pytest.mark.notbuildconfigspec('control_dtb_as_fit') and checking that
'source ${fdtcontroladdr}' always fails in that case?
Rasmus
next prev parent reply other threads:[~2026-05-26 21:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 22:54 [PATCH v2 0/3] allow control DTB to double as "FIT image" Rasmus Villemoes
2026-05-19 22:54 ` [PATCH v2 1/3] image-fit.c: introduce CONTROL_DTB_AS_FIT config knob Rasmus Villemoes
2026-05-25 15:27 ` Simon Glass
2026-05-26 21:12 ` Rasmus Villemoes
2026-05-27 4:09 ` Simon Glass
2026-05-19 22:54 ` [PATCH v2 2/3] doc: develop: add section on embedding scripts inside control DTB Rasmus Villemoes
2026-05-25 15:27 ` Simon Glass
2026-05-19 22:54 ` [PATCH v2 3/3] test: hook up test of allowing control DTB to act as FIT image Rasmus Villemoes
2026-05-25 15:28 ` Simon Glass
2026-05-26 21:18 ` Rasmus Villemoes [this message]
2026-05-27 4:41 ` Simon Glass
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=878q95g99b.fsf@prevas.dk \
--to=ravi@prevas.dk \
--cc=quentin.schulz@cherry.de \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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