MCPcopy Create free account
hub / github.com/apache/tvm-ffi / _stdout_for

Function _stdout_for

tests/python/test_libinfo.py:28–42  ·  view source on GitHub ↗

Invoke tvm-ffi-config with the provided arguments and return stdout with trailing whitespace removed.

(*args: str)

Source from the content-addressed store, hash-verified

26
27
28def _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(

Calls 1

runMethod · 0.80

Tested by

no test coverage detected