-
Notifications
You must be signed in to change notification settings - Fork 37
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
[devel_transport] Async features #65
Conversation
def setup(self): | ||
pass | ||
|
||
def test(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the function of test() ? Is it required to be implemented or optional? If required, should it raise NotImplemented error here?
Events with key starting with '__' will be just consumed if not handled in the loop
"""! Setup your tests and callbacks """ | ||
raise NotImplementedError | ||
|
||
def result(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have result()
method when an async test can notify completion by calling notify_complete
. Two points to convey test results can cause buggy test implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 , I am still not about convinced result() neither
…nd forget to call base setup()
Event handler decorator for automatic registering of event callbacks
Default handling for 'end' event
exporting event_callback up to be imported from mbed_host_tests
[devel_transport] Async features. Roadmap to version 0.2.0
Description
This changes introduce async
htrun
features:{{key;value}}}
protocol.sync
message to sync/handshake DUT and host test.Limitations
This feature is not compatible with Greentea in current state, please use
mbedhtrun
command separately.Example usage:
You can build yourself
mbed-drivers
from corresponding PR.Run some test with
mbedhtrun
(not yet withmbedgt
!!!)Where
-d F:
specifies mount point of your e.g.K64F
, serial port-p COM184:9600
.You should see: