git-repo/tests
Shik Chen 9bf8236c24 logging: Fix log formatting with colored output
The log message is already formatted before being passed to the colorer.
To avoid the exception "TypeError: not enough arguments for format
string", we should use the `nofmt_colorer` instead.

This bug occurs only when the formatted string still contains '%'
character. The following snippet can reproduce the bug:

```
from repo_logging import RepoLogger
RepoLogger(__name__).error("%s", "100% failed")
```

Change-Id: I4e3977b3d21aec4e0deb95fc1c6dd1e59272d695
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/432017
Tested-by: Shik Chen <shik@google.com>
Commit-Queue: Shik Chen <shik@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
2024-07-02 06:24:31 +00:00
..
fixtures git_config: Fixed test.gitconfig getting updated when running tests. 2021-09-30 21:45:09 +00:00
conftest.py tests: setup user identity for tests 2023-12-20 19:04:57 +00:00
test_editor.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_error.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_git_command.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_config.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_superproject.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_trace2_event_log.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_hooks.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_manifest_xml.py manifest_xml: fix url normalization for inits and remotes 2023-12-20 07:38:49 +00:00
test_platform_utils.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_project.py upload: Add support for setting patchset description 2024-03-04 18:50:24 +00:00
test_repo_logging.py logging: Fix log formatting with colored output 2024-07-02 06:24:31 +00:00
test_repo_trace.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_ssh.py Parse OpenSSH versions with no SSH_EXTRAVERSION 2023-05-24 17:33:08 +00:00
test_subcmds_init.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_subcmds_sync.py sync: Fix sorting for nested projects 2024-03-08 17:58:24 +00:00
test_subcmds_upload.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_subcmds.py tests: do not allow underscores in cli options 2023-04-19 02:53:37 +00:00
test_update_manpages.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_wrapper.py cleanup: delete redundant "r" open mode 2023-10-21 00:55:33 +00:00