-
Notifications
You must be signed in to change notification settings - Fork 199
gpiodriver: allow GpioDigitalOutputDriver match against MatchedSysfsGPIO #1646
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
base: master
Are you sure you want to change the base?
gpiodriver: allow GpioDigitalOutputDriver match against MatchedSysfsGPIO #1646
Conversation
The documentation states that the GpioDigitalOutputDriver should bind to the following three 'gpio' options: - SysfsGPIO - MatchedSysfsGPIO - NetworkSysfsGPIO However, the bindings list is: bindings = { "gpio": {"SysfsGPIO", "NetworkSysfsGPIO"}, } and as a result, if I try to bind these two in an environment, I see errors like: labgrid.exceptions.NoSupplierFoundError: binding copilot-output-driver failed: no supplier matching {'NetworkSysfsGPIO', 'SysfsGPIO'} found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml')) (errors: [NoResourceFoundError(msg="no NetworkSysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None), NoResourceFoundError(msg="no SysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None)]) Adjust the list to include MatchedSysfsGPIO so that this works (and so that the docs are correct). Signed-off-by: Trevor Gamblin <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #1646 +/- ##
======================================
Coverage 55.8% 55.8%
======================================
Files 170 170
Lines 13388 13388
======================================
Hits 7472 7472
Misses 5916 5916
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Not clear to me why the Otherwise looks OK. |
This is a flaky test that is usually resolved by kicking the CI again. |
Updated the branch using the web UI. |
Updated the branch again. |
The documentation states that the GpioDigitalOutputDriver should bind to the following three 'gpio' options:
However, the bindings list is:
and as a result, if I try to bind these two in an environment, I see errors like:
labgrid.exceptions.NoSupplierFoundError: binding copilot-output-driver failed: no supplier matching {'NetworkSysfsGPIO', 'SysfsGPIO'} found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml')) (errors: [NoResourceFoundError(msg="no NetworkSysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None), NoResourceFoundError(msg="no SysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None)])
Adjust the list to include MatchedSysfsGPIO so that this works (and so that the docs are correct).