Enable parallel dlt tests#104
Open
HiLivin wants to merge 3 commits intoeclipse-score:mainfrom
Open
Conversation
- safe_size_to_int32 in dlt_user.c is defined outside a DLT_TRACE_LOAD_CTRL_ENABLE guard but only called inside it, triggering -Werror=unused-function with GCC. - dlt_env_ll.c uses strlen() in an array size which Clang treats as a GNU extension (-Wgnu-folding-constant)
Create a dedicated bridge network for each Docker container so that get_ip()/get_gateway() return addresses unique to that container, preventing multicast cross-talk between parallel tests. When a dedicated network is set, get_ip()/get_gateway() default to it. The first-attached-network fallback is only used when no dedicated network was provided (e.g. DockerTarget created without a network). Migrate test_dlt.py helpers to use the new target methods instead of reaching into container internals.
Add a dlt_on_target pytest fixture that uploads dlt-receive to the target and yields a factory for starting receivers. All receivers are stopped automatically on teardown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a dedicated bridge network for each Docker container so that
get_ip()/get_gateway() return addresses unique to that container,
preventing multicast cross-talk between parallel tests.
When a dedicated network is set, get_ip()/get_gateway() default to it.
The first-attached-network fallback is only used when no dedicated
network was provided (e.g. DockerTarget created without a network).
Add a dlt_on_target pytest fixture that uploads dlt-receive to the
target and yields a factory for starting receivers. All receivers are
stopped automatically on teardown.
Suppress two warrnings from third party dlt 2.18.11.