The bitbake event module (lib/bb/event.py) don't have tests, the current tests of bitbake are in (lib/bb/tests) so it need to create the test plan and the tests associated with it.
This bug has been split in two tasks. The current one will track the server and client doubles setup and the creation of basic functionality tests covering the main communication methods and at least three events. Bug 10733 will be used to track extending and completing the bb event module's test coverage.
This enhancement bug will include the following items: - Client and server stubs setup - Testing the module's main functions including: - get_class_handlers() - set_class_handlers(h) - clean_class_handlers() - enable_threadlock() - disable_threadlock() - get_handlers() - set_handlers(handlers) - execute_handler(name, handler, event, d) - fire_class_handlers(event, d) - print_ui_queue() - fire_ui_handlers(event, d) - fire(event, d) - fire_from_worker(event, d) - register(name, handler, mask=None, filename=None, lineno=None) - remove(name, handler) - register_UIHhandler(handler, mainui=False) - unregister_UIHhandler(handlerNum) - Testing event handling using: - class Event(object) - class OperationStarted(Event) - class OperationCompleted(Event) - class OperationProgress(Event)
Submitted patch set to poky-contrib on http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=jairglez/bbevents Currently waiting for test results on http://yctb01.zpn.intel.com:8010/builders/nightly-oe-selftest/builds/312
Patch set has been submitted to OE-core list: http://lists.openembedded.org/pipermail/openembedded-core/2017-January/131628.html
Changed Copyright to Intel in the header comments section and submitted the patch again to the proper list (bitbake-devel): http://lists.openembedded.org/pipermail/bitbake-devel/2017-January/008412.html
Patch set V2 has been submitted to OE-core list: http://lists.openembedded.org/pipermail/bitbake-devel/2017-February/008455.html
Moving the target to 2.4 M1 as the patch was not merged on 2.3 M3.
Moving the target to 2.4 M2 as the patch was not merged on 2.4 M1.
Patchset V4 (http://lists.openembedded.org/pipermail/bitbake-devel/2017-May/008678.html) hes been merged to master.
the verified bitbake-selftest in commit: bd063fa288b49b6e3ea77982d0ccc46610feb1ad ubuntu16.04 STEPS: 1- $ clone poky 2- $ cd poky 3- $ git checkout bd063fa288b49b6e3ea77982d0ccc46610feb1ad 4- $ source oe-init-build-env 5- $ bitbake-selftest All test cases are executed and no errors are reported. note: log in attchanment
Created attachment 4062 [details] log