Submitted to bitbake-devel and added to toaster-next. Thanks. Elliot
On 21 June 2016 at 15:24, Ed Bartosh <[email protected]> wrote: > Hi, > > This patchet contains changes made to toaster-eventreplay script to make > it working > with the recent codebase. > > Most of the changes were caused by moving to Python 3. Old event > serializing code > in cooker and toaster-eventreplay doesn't work in Python 3. > > There were also changes made to toasterui and buildinfohelper that made > the script > outdated, e.g. setEventMask was used in toasterui, but was not implemented > in toaster-eventreplay. > > Test instructions: > - generate event file using bitbake -u knotty -w events core-image-minimal > - start toaster: . ../bitbake/bin/toaster start > - check the the latest build: > ../bitbake/lib/toaster/manage.py shell > In [1]: from orm.models import Build > In [2]: Build.objects.last() > Out[2]: <Build: 58 Project object core-image-minimal> > - replay event file: toaster-eventreplay events > - make sure latest build number is incremented: > ../bitbake/lib/toaster/manage.py shell > In [1]: from orm.models import Build > In [2]: Build.objects.last() > Out[2]: <Build: 59 Project object core-image-minimal> > > Note: This patchset depends on recent changes to cooker code: > http://lists.openembedded.org/pipermail/bitbake-devel/2016-June/007602.html > > The following changes since commit > 94dd70f042cd750a44ddfcef879a9547b072788f: > > toaster-tests: define capabilities for latest Firefox driver (2016-06-21 > 13:48:30 +0300) > > are available in the git repository at: > > git://git.yoctoproject.org/poky-contrib ed/toaster/eventplay-9585 > > http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/eventplay-9585 > > Ed Bartosh (6): > eventreplay: add MockConnection.getEventHandle method > eventprelay: implement setEventMask command > eventreplay: fix event loading code > eventreplay: replace MockConfigParameters with namedtuple > eventreplay: reorganize imports > eventreplay: rewrite the script > > bitbake/bin/toaster-eventreplay | 220 > ++++++++++++++++------------------------ > 1 file changed, 86 insertions(+), 134 deletions(-) > > -- > Regards, > Ed > > -- > _______________________________________________ > toaster mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/toaster > -- Elliot Smith Software Engineer Intel Open Source Technology Centre
-- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
