test FULL_TEST and minimalize diff a bit

pull/24414/head
Shane Smiskol 3 years ago
parent 4950233c45
commit 377ecfd570
  1. 2
      selfdrive/test/process_replay/ref_commit
  2. 14
      selfdrive/test/process_replay/test_processes.py

@ -1 +1 @@
70d79fbcc2b9ab0af867a7d6f138b58bcaaa3aa8
97df122f23f29f864ed5c0205344f51f1717612d

@ -52,7 +52,7 @@ BASE_URL = "https://commadataci.blob.core.windows.net/openpilotci/"
# dashcamOnly makes don't need to be tested until a full port is done
excluded_interfaces = ["mock", "ford", "mazda", "tesla"]
# run the full test (including checks) when no args given
FULL_TEST = len(sys.argv) <= 1 # or "CI" in os.environ
FULL_TEST = len(sys.argv) <= 1 or CI
def test_process(cfg, lr, cmp_log_fn, ignore_fields=None, ignore_msgs=None):
@ -113,17 +113,17 @@ if __name__ == "__main__":
# whitelist has precedence over blacklist in case both are defined
parser.add_argument("--whitelist-procs", type=str, nargs="*", default=[],
help="Whitelist given processes from the test (e.g. controlsd)")
help="Whitelist given processes from the test (e.g. controlsd)")
parser.add_argument("--whitelist-cars", type=str, nargs="*", default=[],
help="Whitelist given cars from the test (e.g. HONDA)")
help="Whitelist given cars from the test (e.g. HONDA)")
parser.add_argument("--blacklist-procs", type=str, nargs="*", default=[],
help="Blacklist given processes from the test (e.g. controlsd)")
help="Blacklist given processes from the test (e.g. controlsd)")
parser.add_argument("--blacklist-cars", type=str, nargs="*", default=[],
help="Blacklist given cars from the test (e.g. HONDA)")
help="Blacklist given cars from the test (e.g. HONDA)")
parser.add_argument("--ignore-fields", type=str, nargs="*", default=[],
help="Extra fields or msgs to ignore (e.g. carState.events)")
help="Extra fields or msgs to ignore (e.g. carState.events)")
parser.add_argument("--ignore-msgs", type=str, nargs="*", default=[],
help="Msgs to ignore (e.g. carEvents)")
help="Msgs to ignore (e.g. carEvents)")
args = parser.parse_args()
cars_whitelisted = len(args.whitelist_cars) > 0

Loading…
Cancel
Save