Hi Jocelyn,

On 10/24/24 8:10 AM, Jocelyn Meyron via lists.yoctoproject.org wrote:
You don't often get email from jmeyron=gmail....@lists.yoctoproject.org. Learn why 
this is important<https://aka.ms/LearnAboutSenderIdentification>
Hello everyone,

I'm wondering if there is an easy way (or a not so hard one :D) to enforce that the 
variables used in BitBake tasks are defined, something akin to "set -u" in 
sh/bash.
I had an issue recently where I removed one bbclass from one recipe and one of 
my tasks was using a variable defined in the class and it took me some time to 
figure out the problem...


For shell tasks/functions, you can add set -u as the first command to run in the task/function.

I believe that should work since we have some recipes with set -e

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64104): https://lists.yoctoproject.org/g/yocto/message/64104
Mute This Topic: https://lists.yoctoproject.org/mt/109185755/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to