Lines Matching full:tc
382 @pytest.mark.parametrize("tc", TEST_CASES)
390 check_call, require, path_exists, path_home, system, tc, runner_config argument
396 system.return_value = tc["system"]
400 port=tc["port"],
401 frequency=tc["frequency"],
402 reset_mode=tc["reset_mode"],
403 start_address=tc["start_address"],
404 conn_modifiers=tc["conn_modifiers"],
405 cli=tc["cli"],
406 use_elf=tc["use_elf"],
407 erase=tc["erase"],
408 extload=tc["extload"],
409 tool_opt=tc["tool_opt"],
414 require.assert_called_with(tc["cli_path"])
415 assert check_call.call_args_list == [call(x) for x in tc["calls"]]
418 @pytest.mark.parametrize("tc", TEST_CASES)
426 check_call, require, path_exists, path_home, system, tc, runner_config argument
432 system.return_value = tc["system"]
434 args = ["--port", tc["port"]]
435 if tc["frequency"]:
436 args.extend(["--frequency", tc["frequency"]])
437 if tc["reset_mode"]:
438 args.extend(["--reset-mode", tc["reset_mode"]])
439 if tc["start_address"]:
440 args.extend(["--start-address", str(tc["start_address"])])
441 if tc["conn_modifiers"]:
442 args.extend(["--conn-modifiers", tc["conn_modifiers"]])
443 if tc["cli"]:
444 args.extend(["--cli", str(tc["cli"])])
445 if tc["use_elf"]:
447 if tc["erase"]:
449 if tc["extload"]:
450 args.extend(["--extload", tc["extload"]])
451 if tc["tool_opt"]:
452 args.extend(["--tool-opt", " " + tc["tool_opt"][0]])
461 require.assert_called_with(tc["cli_path"])
462 assert check_call.call_args_list == [call(x) for x in tc["calls"]]