aboutsummaryrefslogtreecommitdiff
path: root/tools/buildman/func_test.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-19 17:49:04 -0600
committerSimon Glass <sjg@chromium.org>2023-07-24 09:34:11 -0600
commit529957c3157c7667d9ccfbf539ccad7316a37f83 (patch)
tree3dc5e91e75d86c66fb97811f5daf626c54b5b0c8 /tools/buildman/func_test.py
parent6a0c7b4a5eabf021d646d4435b00947529ebd13b (diff)
buildman: Convert to argparse
Use argparse to parse the arguments, since OptionParser is deprecated now. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/func_test.py')
-rw-r--r--tools/buildman/func_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py
index aaf4cde91e..fe11917abc 100644
--- a/tools/buildman/func_test.py
+++ b/tools/buildman/func_test.py
@@ -252,12 +252,12 @@ class TestFunctional(unittest.TestCase):
result code from buildman
"""
sys.argv = [sys.argv[0]] + list(args)
- options, args = cmdline.parse_args()
+ args = cmdline.parse_args()
if brds == False:
brds = self._boards
result = control.do_buildman(
- options, args, toolchains=self._toolchains,
- make_func=self._HandleMake, brds=brds, clean_dir=clean_dir,
+ args, toolchains=self._toolchains, make_func=self._HandleMake,
+ brds=brds, clean_dir=clean_dir,
test_thread_exceptions=test_thread_exceptions)
if get_builder:
self._builder = control.TEST_BUILDER