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

Merge of #373 prevents Building pi4j on a Pi. #412

Open
taartspi opened this issue Nov 16, 2024 · 2 comments
Open

Merge of #373 prevents Building pi4j on a Pi. #412

taartspi opened this issue Nov 16, 2024 · 2 comments

Comments

@taartspi
Copy link
Collaborator

@eitch @FDelporte I did a fetch and rebase and then mvn clean install -Pnative.
Failures:
[ERROR] AutoPlatformsTest.testPlatformsNotEmpty:69 expected: but was:
[ERROR] Errors:
[ERROR] I2CRawDataTest.testRawDataStream:148 » Pi4J Failed to execute action for devic...
[ERROR

In the file DefaultContextBuilder line 54 protected boolean autoDetectMockPlugins = !BoardInfoHelper.runningOnRaspberryPi();
I set this to true and the build and test works.
I did no further investigation @eitch thinking your suggestion of how to change #373 is needed.

@taartspi
Copy link
Collaborator Author

@eitch robert. Should i locate where the test environment creates the Context and use new signature ? I think we added one that loads the needed providers. If not maybe that signature is required

@eitch
Copy link
Member

eitch commented Nov 18, 2024

@taartspi Hi, yes this makes sense, to allow loading the mocks in test cases also on the Raspberry Pi.

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

No branches or pull requests

2 participants