[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arxml namespace improvements #238

Merged
merged 2 commits into from
Nov 30, 2020

Conversation

andlaus
Copy link
Member
@andlaus andlaus commented Nov 30, 2020

This PR continues the quest for ARXML-3 support, cf https://github.com/andlaus/cantools/tree/arxml_refactor

In this PR, the XML namespace handling for ARXML files is improved and a method to conveniently compare AUTOSAR versions in the code is introduced.

Andreas Lauser andreas.lauser@mbition.io, Mercedes-Benz AG on behalf of MBition GmbH.

Imprint

@coveralls
Copy link
coveralls commented Nov 30, 2020

Coverage Status

Coverage decreased (-0.01%) to 96.943% when pulling f37bfc5 on Daimler:arxml_namespace_improvements into 386f51a on eerimoq:master.

@eerimoq
Copy link
Collaborator
eerimoq commented Nov 30, 2020

Looks good. Will merge once the tests pass.

The most significant change implied by this is probably that the
AUTOSAR version is now parsed properly. This is done using some
regular expressions on the namespace of the ElementTree root
node. Maybe there's a better way to do it, but I'm not aware of any.
Actually, this logic can be used to compare any version scheme that
roughly follows the semantic versioning specification.
@eerimoq eerimoq merged commit 2300d5d into cantools:master Nov 30, 2020
@andlaus
Copy link
Member Author
andlaus commented Nov 30, 2020

Thanks for merging.

The coveralls result is weird: if I see this correctly, it says that the coverage of the cantools/database directory is down, but coverage of all individual files is up.....

@andlaus andlaus deleted the arxml_namespace_improvements branch November 30, 2020 10:02
@eerimoq
Copy link
Collaborator
eerimoq commented Nov 30, 2020

Yeah don't look too closely at it. It's weird sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants