Invoke tvm-ffi-config with the provided arguments and return stdout with trailing whitespace removed.
(*args: str)
| 26 | |
| 27 | |
| 28 | def _stdout_for(*args: str) -> str: |
| 29 | """Invoke tvm-ffi-config with the provided arguments and return stdout with trailing whitespace removed.""" |
| 30 | result = subprocess.run( |
| 31 | [ |
| 32 | sys.executable, |
| 33 | "-m", |
| 34 | "tvm_ffi.config", |
| 35 | *args, |
| 36 | ], |
| 37 | check=True, |
| 38 | capture_output=True, |
| 39 | text=True, |
| 40 | ) |
| 41 | assert result.stderr == "" |
| 42 | return result.stdout.strip() |
| 43 | |
| 44 | |
| 45 | @pytest.mark.parametrize( |
no test coverage detected