git_superproject: Log actual error fmt instead of the entire error message.

Bug: b/258492341
Change-Id: I00678d572712791190ae1ad4e1bcf3cbe04cc1c0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/357114
Tested-by: Joanna Wang <jojwang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
Joanna Wang
2023-02-01 15:15:00 -05:00
parent 7eab0eedf2
commit 016a25447f
2 changed files with 28 additions and 24 deletions

View File

@@ -163,6 +163,7 @@ class SuperprojectTestCase(unittest.TestCase):
sync_result = self._superproject.Sync(self.git_event_log)
self.assertFalse(sync_result.success)
self.assertTrue(sync_result.fatal)
self.verifyErrorEvent()
def test_superproject_get_superproject_mock_init(self):
"""Test with _Init failing."""