fix --test to automatically fix errors

This commit is contained in:
Paul Gauthier 2024-12-06 11:23:15 -08:00
parent 2df509effd
commit c251a93609

View file

@ -853,9 +853,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
io.tool_error("No --test-cmd provided.")
analytics.event("exit", reason="No test command provided")
return 1
test_errors = coder.commands.cmd_test(args.test_cmd)
if test_errors:
coder.run(test_errors)
coder.commands.cmd_test(args.test_cmd)
if io.placeholder:
coder.run(io.placeholder)
if args.commit:
if args.dry_run: