resource/remote: handle unknown resource - #1959
Conversation
Instead of failing to create a RemotePlaceManager print out a warning on unknown remote resources and continue. This will allow use of standard tools like labgrid-client's console together with a remote place where some of its resources are unknown/custom. Signed-off-by: Emil Svendsen <emas@bang-olufsen.dk>
6d0df0a to
a98a801
Compare
|
This would mean that if you run the same testsuite in different environments (perhaps some outdated and missing new drivers), you'd just get a warning and then surprising errors when it tries to bind the drivers. So, I don't think simply warning and continuing there is a viable approach. |
In an outdated environment. The most normal case where only new resources has been added. It should still work as expected. Also I see these possible errors[1]? And I find them as informative if not more than [1] When having access to cls (I guess here it will not be outdated because you have access to the class) |
Description
Instead of failing to create a RemotePlaceManager print out a warning on unknown remote resources and continue.
This will allow use of standard tools like labgrid-client's console together with a remote place where some of its resources are unknown/custom.
This will add value for projects using not yet upstreamed resources or if they're simply too custom for upstream. So useful labgrid-client tools can still be used without any workarounds.
Current workaround is importing labgrid client main in custom project where the custom resources are registered and create custom command to run labgrid-client.
Checklist
It was tested by adding an unknown resource to an exporter and adding it to a place with a serial connection like