[UptestTestChecks][NFC] Share some common command line options code
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 20 Nov 2019 13:19:48 +0000 (13:19 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 20 Nov 2019 13:23:26 +0000 (13:23 +0000)
commit6187394dd05ea20db01370b1990a79d517d98f7e
treeff481a5316cabfe9e4b35a9e21fbfed7c6fc5072
parent5bab291b7bd043104abf1ca7977e8248684cae95
[UptestTestChecks][NFC] Share some common command line options code

Summary:
Add a function common.parse_commandline_args() that adds options common
to all tools (--verbose and --update-only) and returns the parsed
commandline arguments. I plan to use the shared parsing of --verbose in a
follow-up commit to remove most of the `if args.verbose:` checks in the
scripts.

Reviewers: xbolva00, MaskRay

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70428
llvm/utils/UpdateTestChecks/common.py
llvm/utils/update_analyze_test_checks.py
llvm/utils/update_cc_test_checks.py
llvm/utils/update_llc_test_checks.py
llvm/utils/update_mca_test_checks.py
llvm/utils/update_mir_test_checks.py
llvm/utils/update_test_checks.py