Commit cb9533d1 authored by Roman Mashak's avatar Roman Mashak Committed by David S. Miller

tc-testing: remove duplicate code in tdc.py

In set_operation_mode() function remove duplicated check for args.list
parameter, which is already done one line before.
Signed-off-by: default avatarRoman Mashak <mrv@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4faab8c4
...@@ -713,9 +713,8 @@ def set_operation_mode(pm, parser, args, remaining): ...@@ -713,9 +713,8 @@ def set_operation_mode(pm, parser, args, remaining):
exit(0) exit(0)
if args.list: if args.list:
if args.list: list_test_cases(alltests)
list_test_cases(alltests) exit(0)
exit(0)
if len(alltests): if len(alltests):
req_plugins = pm.get_required_plugins(alltests) req_plugins = pm.get_required_plugins(alltests)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment