浏览代码

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 <ddoman@chromium.org>
Reviewed-by: Andy Perelson <ajp@google.com>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Alex Gough 6 月之前
父节点
当前提交
74e3dea38d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      git_cl.py

+ 1 - 1
git_cl.py

@@ -7096,7 +7096,7 @@ def CMDformat(parser, args):
     if opts.python is not False:
     if opts.python is not False:
         formatters += [(['.py'], _RunYapf)]
         formatters += [(['.py'], _RunYapf)]
     if opts.mojom:
     if opts.mojom:
-        formatters += [(['.mojom'], _RunMojomFormat)]
+        formatters += [(['.mojom', '.test-mojom'], _RunMojomFormat)]
     if opts.lucicfg:
     if opts.lucicfg:
         formatters += [(['.star'], _RunLUCICfgFormat)]
         formatters += [(['.star'], _RunLUCICfgFormat)]