cache as an option

pull/24661/head
ClockeNessMnstr 3 years ago
parent b6c05614e2
commit 060ed4ade5
  1. 4
      selfdrive/test/process_replay/test_processes.py

@ -150,11 +150,15 @@ if __name__ == "__main__":
help="Updates reference logs using current commit")
parser.add_argument("--upload-only", action="store_true",
help="Skips testing processes and uploads logs from previous test run")
parser.add_argument("--use-cache", action="store_true",
help="Caches log files")
parser.add_argument("-j", "--jobs", type=int, default=1)
args = parser.parse_args()
full_test = all(len(x) == 0 for x in (args.whitelist_procs, args.whitelist_cars, args.blacklist_procs, args.blacklist_cars, args.ignore_fields, args.ignore_msgs))
upload = args.update_refs or args.upload_only
if args.use_cache:
os.environ["FILEREADER_CACHE"] = "1"
os.makedirs(os.path.dirname(FAKEDATA), exist_ok=True)
if upload:

Loading…
Cancel
Save