mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
autotest: fix --list-subtests
This commit is contained in:
parent
3a5567265a
commit
db4f974c64
@ -810,11 +810,9 @@ def list_subtests():
|
||||
subtests = tester.tests()
|
||||
sorted_list = []
|
||||
for subtest in subtests:
|
||||
if type(subtest) is tuple:
|
||||
(name, description, function) = subtest
|
||||
sorted_list.append([name, description])
|
||||
else:
|
||||
sorted_list.append([subtest.name, subtest.description])
|
||||
if str(type(subtest)) == "<class 'method'>":
|
||||
subtest = Test(subtest)
|
||||
sorted_list.append([subtest.name, subtest.description])
|
||||
sorted_list.sort()
|
||||
|
||||
print("%s:" % vehicle)
|
||||
|
Loading…
Reference in New Issue
Block a user