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

Metricdog: use compile time architecture for unit tests #2363

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

jpmcb
Copy link
Contributor

@jpmcb jpmcb commented Aug 22, 2022

Issue number:

Closes #2360

Description of changes:

Removes hard coded "x86_64" architecture matcher in metricdog tests
which fail on "aarch" based systems.

Instead, uses the std::env::consts::ARCH constant which is populated
with the "uname" string (i.e. x86_64, aarch) at compile time.

Signed-off-by: John McBride <[email protected]>

Testing done:

Within sources/metricdog/, able to successfully run cargo test

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Removes hard coded "x86_64" architecture matcher in metricdog tests
which fail on "aarch" based systems.

Instead, uses the std::env::consts::ARCH constant which is populated
with the "uname" string (i.e. x86_64, aarch) at compile time.

Signed-off-by: John McBride <[email protected]>
Copy link
Contributor

@etungsten etungsten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥮

@jpmcb jpmcb merged commit ad3fa44 into bottlerocket-os:develop Aug 22, 2022
@jpmcb jpmcb deleted the metricdog-aarch-unit-tests branch August 22, 2022 22:00
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.

Metricdog unit tests fail on arm architecture
3 participants