On Wed, 2024-07-31 at 20:50 +0200, Jan Vermaete via lists.yoctoproject.org 
wrote:
> I was wondering if there is a convention or agreement on what to do
> with tests under ptests that do need internet but are running without?
> An example could be a unittest of a package about networking that does
> a ping to an URL.

We haven't had anyone raise that as a requirement and we don't have any
markup of the tests for it.

The challenge is that ptests vary significantly in how they're run so
we probably can't control if they're executed or not on a per test
basis in a general way, only overall at the recipe level.

> For now, Yocto assumes there is always a network/internet?

For ptests, yes. We do assume the rest of the build can run offline
outside of fetching.

> Or we could exclude those tests based on BB_NO_NETWORK?
> Something else, or not in years a priority right now?

You could just run the tests and create a list of known failures
without network, then filter the results accordingly. You could also
have a list of recipes whos ptests are known to access the internet and
exclude those from your testing?

Cheers,

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

Reply via email to