(self, port, json_path=None, scenario_name=None)
| 129 | server.wait(5) |
| 130 | |
| 131 | def flight_request(self, port, json_path=None, scenario_name=None): |
| 132 | cmd = _FLIGHT_CLIENT_CMD + [f'-port={port}'] |
| 133 | if json_path: |
| 134 | cmd.extend(('-path', json_path)) |
| 135 | elif scenario_name: |
| 136 | cmd.extend(('-scenario', scenario_name)) |
| 137 | else: |
| 138 | raise TypeError("Must provide one of json_path or scenario_name") |
| 139 | |
| 140 | if self.debug: |
| 141 | log(' '.join(cmd)) |
| 142 | run_cmd(cmd) |
| 143 | |
| 144 | def make_c_data_exporter(self): |
| 145 | return CppCDataExporter(self.debug, self.args) |