diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-19 17:49:01 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-07-24 09:34:11 -0600 |
commit | ae042fd80119d2572e1f122cbaa7228d5645fa19 (patch) | |
tree | 02338ef56346975de7b9841e3eeb56e3e2c66fba /tools/buildman | |
parent | 1d0c55d83a3cf1724e1283cf5a59d19a233b8da2 (diff) | |
download | u-boot-ae042fd80119d2572e1f122cbaa7228d5645fa19.zip u-boot-ae042fd80119d2572e1f122cbaa7228d5645fa19.tar.gz u-boot-ae042fd80119d2572e1f122cbaa7228d5645fa19.tar.bz2 |
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>
Diffstat (limited to 'tools/buildman')
-rw-r--r-- | tools/buildman/cmdline.py | 2 | ||||
-rw-r--r-- | tools/buildman/func_test.py | 2 | ||||
-rwxr-xr-x | tools/buildman/main.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/buildman/cmdline.py b/tools/buildman/cmdline.py index 7918195..503c48d 100644 --- a/tools/buildman/cmdline.py +++ b/tools/buildman/cmdline.py @@ -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: diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index bd7db1e..6b6afe7 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -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( diff --git a/tools/buildman/main.py b/tools/buildman/main.py index 9a1d599..70ab9a4 100755 --- a/tools/buildman/main.py +++ b/tools/buildman/main.py @@ -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 |