diff options
author | Jason Chang <jasonnc@google.com> | 2023-08-03 16:18:02 -0700 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-08-07 18:14:40 +0000 |
commit | b8a7b4a629c3435d77a3266a4e6dce51dc342bd9 (patch) | |
tree | e1d54c983ad762f47f630439a1b99a4f7cbcaf8d /tests/test_git_trace2_event_log.py | |
parent | 32b59565b7bd41ec1a121869823557f0b2b022d7 (diff) | |
download | git-repo-b8a7b4a629c3435d77a3266a4e6dce51dc342bd9.tar.gz |
Prefix error events with RepoErrorEvent:
Prior to this change there is no way to distinguish between git sessions logs
generated from repo source v.s. from git.
Bug: b/294446468
Change-Id: I309f59e146c30cb08a0637e8d0b9c5d9efd5cada
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/381794
Commit-Queue: Jason Chang <jasonnc@google.com>
Reviewed-by: Joanna Wang <jojwang@google.com>
Tested-by: Jason Chang <jasonnc@google.com>
Diffstat (limited to 'tests/test_git_trace2_event_log.py')
-rw-r--r-- | tests/test_git_trace2_event_log.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_git_trace2_event_log.py b/tests/test_git_trace2_event_log.py index a6078d38..9d4f24c3 100644 --- a/tests/test_git_trace2_event_log.py +++ b/tests/test_git_trace2_event_log.py | |||
@@ -338,8 +338,8 @@ class EventLogTestCase(unittest.TestCase): | |||
338 | # Check for 'error' event specific fields. | 338 | # Check for 'error' event specific fields. |
339 | self.assertIn("msg", error_event) | 339 | self.assertIn("msg", error_event) |
340 | self.assertIn("fmt", error_event) | 340 | self.assertIn("fmt", error_event) |
341 | self.assertEqual(error_event["msg"], msg) | 341 | self.assertEqual(error_event["msg"], f"RepoErrorEvent:{msg}") |
342 | self.assertEqual(error_event["fmt"], fmt) | 342 | self.assertEqual(error_event["fmt"], f"RepoErrorEvent:{fmt}") |
343 | 343 | ||
344 | def test_write_with_filename(self): | 344 | def test_write_with_filename(self): |
345 | """Test Write() with a path to a file exits with None.""" | 345 | """Test Write() with a path to a file exits with None.""" |