[oe-commits] [bitbake] 04/13: eventprelay: implement setEventMask command
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 7 13:30:29 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit f143c45c884db0ec22f3f1265c5bfdc192c7e9dd
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed Jul 6 12:00:30 2016 +0100
eventprelay: implement setEventMask command
Stored event mask list as self.eventmask for future use.
Fixed Exception: Command setEventMask not implemented.
[YOCTO #9585]
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bin/toaster-eventreplay | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bin/toaster-eventreplay b/bin/toaster-eventreplay
index 14f4f00..03b5dde 100755
--- a/bin/toaster-eventreplay
+++ b/bin/toaster-eventreplay
@@ -53,6 +53,7 @@ class FileReadEventsServerConnection():
"""
def __init__(self, sc):
self._sc = sc
+ self.eventmask = []
def runCommand(self, commandArray):
""" emulates running a command on the server; only read-only commands are accepted """
@@ -79,6 +80,11 @@ class FileReadEventsServerConnection():
except Exception as e:
print(e)
return (dump, None)
+
+ elif command_name == 'setEventMask':
+ self.eventmask = commandArray[-1]
+ return True, None
+
else:
raise Exception("Command %s not implemented" % commandArray[0])
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list