(hq_env: HqEnv, args: List[str])
| 17 | |
| 18 | |
| 19 | def start_server_get_output(hq_env: HqEnv, args: List[str]) -> Table: |
| 20 | command = hq_env.server_args() |
| 21 | command += args |
| 22 | p = subprocess.Popen(command, stdout=subprocess.PIPE) |
| 23 | try: |
| 24 | stdout, stderr = p.communicate(timeout=0.5) |
| 25 | except subprocess.TimeoutExpired: |
| 26 | p.kill() |
| 27 | stdout, stderr = p.communicate() |
| 28 | stdout = stdout.decode() |
| 29 | return parse_table(stdout) |
| 30 | |
| 31 | |
| 32 | def test_server_host(hq_env: HqEnv): |
no test coverage detected