pi4j-v2 icon indicating copy to clipboard operation
pi4j-v2 copied to clipboard

Merge of #373 prevents Building pi4j on a Pi.

Open taartspi opened this issue 1 year ago • 2 comments
trafficstars

@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 avatar Nov 16 '24 00:11 taartspi

@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

taartspi avatar Nov 18 '24 05:11 taartspi

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

eitch avatar Nov 18 '24 09:11 eitch