autotest: correct type-check

py2 vs py3
This commit is contained in:
Peter Barker 2022-09-12 20:10:48 +10:00 committed by Peter Barker
parent 6dd419eff5
commit 109d0286d9
1 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ def run_specific_test(step, *args, **kwargs):
print("Got %s" % str(tester))
for a in tester.tests():
if type(a) != 'Test':
if type(a) != Test:
a = Test(a)
print("Got %s" % (a.name))
if a.name == test:
@ -831,7 +831,7 @@ def list_subtests_for_vehicle(vehicle_type):
subtests = tester.tests()
sorted_list = []
for subtest in subtests:
if type(subtest) != 'Test':
if type(subtest) != Test:
subtest = Test(subtest)
sorted_list.append([subtest.name, subtest.description])
sorted_list.sort()