test fw query: fix migration import (#29283)

huh this was just broken
This commit is contained in:
Shane Smiskol
2023-08-08 13:48:11 -07:00
committed by GitHub
parent cb31a53d8a
commit b34341e7e5
+3 -3
View File
@@ -18,9 +18,9 @@ SUPPORTED_CARS = [brand for brand in SUPPORTED_BRANDS for brand in interface_nam
UNKNOWN_BRAND = "unknown"
try:
from xx.pipeline.c.CarState import migration
from xx.pipeline.lib.fingerprint import MIGRATION
except ImportError:
migration = {}
MIGRATION = {}
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Run FW fingerprint on Qlog of route or list of routes')
@@ -78,7 +78,7 @@ if __name__ == "__main__":
break
live_fingerprint = CP.carFingerprint
live_fingerprint = migration.get(live_fingerprint, live_fingerprint)
live_fingerprint = MIGRATION.get(live_fingerprint, live_fingerprint)
if args.car is not None:
live_fingerprint = args.car