|
32 | 32 |
|
33 | 33 |
|
34 | 34 | @click.pass_context
|
35 |
| -def send_yaml_command(ctx, test_name: str, server_path: str, server_arguments: str, pics: str, additional_pseudo_clusters_directory: str, commands: List[str]): |
36 |
| - kwargs = {'test_name': test_name, 'pics': pics, 'additional_pseudo_clusters_directory': additional_pseudo_clusters_directory} |
| 35 | +def send_yaml_command(ctx, test_name: str, server_path: str, server_arguments: str, show_adapter_logs: bool, pics: str, additional_pseudo_clusters_directory: str, commands: List[str]): |
| 36 | + kwargs = {'test_name': test_name, 'show_adapter_logs': show_adapter_logs, 'pics': pics, |
| 37 | + 'additional_pseudo_clusters_directory': additional_pseudo_clusters_directory} |
37 | 38 |
|
38 | 39 | index = 0
|
39 | 40 | while len(commands) - index > 1:
|
@@ -83,6 +84,8 @@ def chiptool_runner_options(f):
|
83 | 84 | help='Name of a websocket server to run at launch.')(f)
|
84 | 85 | f = click.option('--server_arguments', type=str, default='interactive server',
|
85 | 86 | help='Optional arguments to pass to the websocket server at launch.')(f)
|
| 87 | + f = click.option('--show_adapter_logs', type=bool, default=False, show_default=True, |
| 88 | + help='Show additional logs provided by the adapter.')(f) |
86 | 89 | f = click.option('--trace_file', type=click.Path(), default=None,
|
87 | 90 | help='Optional file path to save the tracing output to.')(f)
|
88 | 91 | f = click.option('--trace_decode', type=bool, default=True,
|
@@ -126,14 +129,14 @@ def maybe_update_stop_on_error(ctx):
|
126 | 129 | @click.argument('commands', nargs=-1)
|
127 | 130 | @chiptool_runner_options
|
128 | 131 | @click.pass_context
|
129 |
| -def chiptool_py(ctx, commands: List[str], server_path: str, server_name: str, server_arguments: str, trace_file: str, trace_decode: bool, delay_in_ms: int, continueonfailure: bool, pics: str, additional_pseudo_clusters_directory: str): |
| 132 | +def chiptool_py(ctx, commands: List[str], server_path: str, server_name: str, server_arguments: str, show_adapter_logs: bool, trace_file: str, trace_decode: bool, delay_in_ms: int, continueonfailure: bool, pics: str, additional_pseudo_clusters_directory: str): |
130 | 133 | success = False
|
131 | 134 |
|
132 | 135 | server_arguments = maybe_update_server_arguments(ctx)
|
133 | 136 | maybe_update_stop_on_error(ctx)
|
134 | 137 |
|
135 | 138 | if len(commands) > 1 and commands[0] == 'tests':
|
136 |
| - success = send_yaml_command(commands[1], server_path, server_arguments, pics, |
| 139 | + success = send_yaml_command(commands[1], server_path, server_arguments, show_adapter_logs, pics, |
137 | 140 | additional_pseudo_clusters_directory, commands[2:])
|
138 | 141 | else:
|
139 | 142 | if server_path is None and server_name:
|
|
0 commit comments