buildman: Convert camel case in cmdline.py

Convert this file to snake case and update all files which use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2023-07-19 17:49:01 -06:00
parent 1d0c55d83a
commit ae042fd801
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ import pathlib
BUILDMAN_DIR = pathlib.Path(__file__).parent
HAS_TESTS = os.path.exists(BUILDMAN_DIR / "test.py")
def ParseArgs():
def parse_args():
"""Parse command line arguments from sys.argv[]
Returns:

View file

@ -252,7 +252,7 @@ class TestFunctional(unittest.TestCase):
result code from buildman
"""
sys.argv = [sys.argv[0]] + list(args)
options, args = cmdline.ParseArgs()
options, args = cmdline.parse_args()
if brds == False:
brds = self._boards
result = control.do_buildman(

View file

@ -60,7 +60,7 @@ def run_buildman():
This is the main program. It collects arguments and runs either the tests or
the control module.
"""
options, args = cmdline.ParseArgs()
options, args = cmdline.parse_args()
if not options.debug:
sys.tracebacklimit = 0