From 74e3dea38d2c0582da7f2cf1ab6aecaf9c9518c6 Mon Sep 17 00:00:00 2001 From: Alex Gough Date: Wed, 19 Feb 2025 10:15:38 -0800 Subject: [PATCH] Add .test-mojom to mojom formatted types These files are testonly but can still be formatted by the mojom formatter, so add to the matched extensions. Bug: 397343888 Change-Id: I60352e8400e68426f262eb5601b76c17c0f0b912 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6279546 Reviewed-by: Scott Lee Reviewed-by: Andy Perelson Commit-Queue: Alex Gough --- git_cl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index e166425200..5beff98f23 100755 --- a/git_cl.py +++ b/git_cl.py @@ -7096,7 +7096,7 @@ def CMDformat(parser, args): if opts.python is not False: formatters += [(['.py'], _RunYapf)] if opts.mojom: - formatters += [(['.mojom'], _RunMojomFormat)] + formatters += [(['.mojom', '.test-mojom'], _RunMojomFormat)] if opts.lucicfg: formatters += [(['.star'], _RunLUCICfgFormat)]