diff options
author | Mary Ruthven <mruthven@google.com> | 2018-12-13 14:17:48 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-04 12:46:36 -0800 |
commit | a588c9e99e5f40d4f9af2ee24c8d27cd64ff2c1e (patch) | |
tree | 57f6641e3903be98dfb1f8572dd19bafe9ba8a5f /util/ec3po/interpreter_unittest.py | |
parent | 0d8358a854797867564bc4032dbe3296c3b040e4 (diff) | |
download | chrome-ec-a588c9e99e5f40d4f9af2ee24c8d27cd64ff2c1e.tar.gz |
ec3po: use source name in logger
Include the ec3po source name in the logger, so it is clear which
console is logging the messages.
BUG=none
BRANCH=none
TEST=none
Change-Id: I8d3bb330c3928b8f05078fd90b0238c4b027d90b
Signed-off-by: Mary Ruthven <mruthven@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1376776
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Diffstat (limited to 'util/ec3po/interpreter_unittest.py')
-rwxr-xr-x | util/ec3po/interpreter_unittest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/ec3po/interpreter_unittest.py b/util/ec3po/interpreter_unittest.py index 8b9578a242..57c9abf4ae 100755 --- a/util/ec3po/interpreter_unittest.py +++ b/util/ec3po/interpreter_unittest.py @@ -39,7 +39,8 @@ class TestEnhancedECBehaviour(unittest.TestCase): self.itpr = interpreter.Interpreter(self.tempfile.name, self.cmd_pipe_itpr, self.dbg_pipe_itpr, - log_level=logging.DEBUG) + log_level=logging.DEBUG, + name="EC") @mock.patch('interpreter.os') def test_HandlingCommandsThatProduceNoOutput(self, mock_os): @@ -274,7 +275,8 @@ class TestUARTDisconnection(unittest.TestCase): self.itpr = interpreter.Interpreter(self.tempfile.name, self.cmd_pipe_itpr, self.dbg_pipe_itpr, - log_level=logging.DEBUG) + log_level=logging.DEBUG, + name="EC") # First, check that interpreter is initialized to connected. self.assertTrue(self.itpr.connected, ('The interpreter should be' |