summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-07-06 12:00:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:06 +0100
commit2e09074c70e89402de8f883dd402cd729118fc7e (patch)
tree80f55d08189517910be98277aef52b5ff610132f /bin
parent6deae30480a4288da0c8b3529e61f3495f260f24 (diff)
downloadbitbake-contrib-2e09074c70e89402de8f883dd402cd729118fc7e.zip
bitbake-contrib-2e09074c70e89402de8f883dd402cd729118fc7e.tar.gz
bitbake-contrib-2e09074c70e89402de8f883dd402cd729118fc7e.tar.bz2
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@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/toaster-eventreplay6
1 files changed, 6 insertions, 0 deletions
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])