MCPcopy Create free account
hub / github.com/apache/tvm / run

Method run

tests/python/ci/test_utils.py:45–55  ·  view source on GitHub ↗

Run a git command based on *args

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

43 self.run("remote", "add", "origin", "https://github.com/apache/tvm.git")
44
45 def run(self, *args, **kwargs):
46 """
47 Run a git command based on *args
48 """
49 proc = subprocess.run(
50 ["git"] + list(args), encoding="utf-8", cwd=self.cwd, check=False, **kwargs
51 )
52 if proc.returncode != 0:
53 raise RuntimeError(f"git command failed: '{args}'")
54
55 return proc
56
57
58def run_script(command: list[Any], check: bool = True, **kwargs):

Callers 9

test_skip_ciFunction · 0.95
__init__Method · 0.95
run_scriptFunction · 0.45
get_git_filesFunction · 0.45
task_build.pyFile · 0.45
cmdFunction · 0.45
list_rfcs.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected