From 109d0286d9b9ee378cad28702abf592a140f6a02 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 12 Sep 2022 20:10:48 +1000 Subject: [PATCH] autotest: correct type-check py2 vs py3 --- Tools/autotest/autotest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 482b8d9226..e917941145 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -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()