bitbake: eventprelay: implement setEventMask command
Stored event mask list as self.eventmask for future use. Fixed Exception: Command setEventMask not implemented. [YOCTO #9585] (Bitbake rev: 2e09074c70e89402de8f883dd402cd729118fc7e) 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>
This commit is contained in:
parent
a1ceb0f9cd
commit
2199ff5ce6
|
@ -53,6 +53,7 @@ class FileReadEventsServerConnection():
|
||||||
"""
|
"""
|
||||||
def __init__(self, sc):
|
def __init__(self, sc):
|
||||||
self._sc = sc
|
self._sc = sc
|
||||||
|
self.eventmask = []
|
||||||
|
|
||||||
def runCommand(self, commandArray):
|
def runCommand(self, commandArray):
|
||||||
""" emulates running a command on the server; only read-only commands are accepted """
|
""" emulates running a command on the server; only read-only commands are accepted """
|
||||||
|
@ -79,6 +80,11 @@ class FileReadEventsServerConnection():
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
return (dump, None)
|
return (dump, None)
|
||||||
|
|
||||||
|
elif command_name == 'setEventMask':
|
||||||
|
self.eventmask = commandArray[-1]
|
||||||
|
return True, None
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise Exception("Command %s not implemented" % commandArray[0])
|
raise Exception("Command %s not implemented" % commandArray[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue