3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

test-runner: fix result/monitor options

An earlier commit fixed several options but ended up breaking others. The
result_parent/monitor_parent options are hidden from the user and only meant
to be passed to the kernel but they relied on the fact that the underscore
was present, not a dash. This updates the argument to use a dash:

--result-parent
--monitor-parent

Fixes: 00e41eb0ff ("test-runner: Fix parsing for some arguments")
This commit is contained in:
James Prestwood 2022-06-22 16:51:16 -07:00 committed by Denis Kenzior
parent 8f42507641
commit d43ec1b014

View File

@ -117,8 +117,8 @@ class RunnerCoreArgParse(ArgumentParser):
type=str, type=str,
help='Use physical adapters for tests (passthrough)') help='Use physical adapters for tests (passthrough)')
self.add_argument('--testhome', help=SUPPRESS) self.add_argument('--testhome', help=SUPPRESS)
self.add_argument('--monitor_parent', help=SUPPRESS) self.add_argument('--monitor-parent', help=SUPPRESS)
self.add_argument('--result_parent', help=SUPPRESS) self.add_argument('--result-parent', help=SUPPRESS)
# Prevent --autotest/--unittest from being used together # Prevent --autotest/--unittest from being used together
auto_unit_group = self.add_mutually_exclusive_group() auto_unit_group = self.add_mutually_exclusive_group()