diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-07-06 12:00:30 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:28 +0100 |
| commit | 2199ff5ce69d8b90dff8306ffe8f0f5693b39645 (patch) | |
| tree | c73f0458e4d3d5fe4c50c565742f159d19d54fa0 | |
| parent | a1ceb0f9cda64b000305f0e650eaa81e32e05dce (diff) | |
| download | poky-2199ff5ce69d8b90dff8306ffe8f0f5693b39645.tar.gz | |
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>
| -rwxr-xr-x | bitbake/bin/toaster-eventreplay | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/bin/toaster-eventreplay b/bitbake/bin/toaster-eventreplay index 14f4f0088b..03b5dde938 100755 --- a/bitbake/bin/toaster-eventreplay +++ b/bitbake/bin/toaster-eventreplay | |||
| @@ -53,6 +53,7 @@ class FileReadEventsServerConnection(): | |||
| 53 | """ | 53 | """ |
| 54 | def __init__(self, sc): | 54 | def __init__(self, sc): |
| 55 | self._sc = sc | 55 | self._sc = sc |
| 56 | self.eventmask = [] | ||
| 56 | 57 | ||
| 57 | def runCommand(self, commandArray): | 58 | def runCommand(self, commandArray): |
| 58 | """ emulates running a command on the server; only read-only commands are accepted """ | 59 | """ emulates running a command on the server; only read-only commands are accepted """ |
| @@ -79,6 +80,11 @@ class FileReadEventsServerConnection(): | |||
| 79 | except Exception as e: | 80 | except Exception as e: |
| 80 | print(e) | 81 | print(e) |
| 81 | return (dump, None) | 82 | return (dump, None) |
| 83 | |||
| 84 | elif command_name == 'setEventMask': | ||
| 85 | self.eventmask = commandArray[-1] | ||
| 86 | return True, None | ||
| 87 | |||
| 82 | else: | 88 | else: |
| 83 | raise Exception("Command %s not implemented" % commandArray[0]) | 89 | raise Exception("Command %s not implemented" % commandArray[0]) |
| 84 | 90 | ||
